JSON output
Generate machine-readable JSON output for scripting and automation:Compact format with templates
Create single-line output using template strings:Custom UI with formatting
Build a custom UI with colored output and formatting:Configuration-based layout
Load layout configuration from a file:layout.json:
Best practices
Use caching
Always use a
CacheManager to avoid redundant system calls. The cache persists across runs for better performance.Handle errors gracefully
Check
Result types before using values. Not all information is available on all platforms.Format numbers appropriately
Use helper functions like
BytesToGiB() for human-readable output. Raw byte values are difficult to read.