From 78772329dc625b76bc1cbca61e0ed4912e93e0c8 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Wed, 29 Jul 2026 10:33:02 -0500 Subject: config: make all fields and the file optional; add output format; default logLevel to warn - timezone optional -> host system zone (jiff, macOS + Linux) - storagePath optional -> platform data dir (/var/lib on Linux, ~/Library/Application Support on macOS) - config file optional at the default path; explicit --config must still exist - default logLevel changed from info to warn - new output field (text|json) sets the default rendering so -j isn't needed per call --- src/output.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/output.rs') diff --git a/src/output.rs b/src/output.rs index 0a8a536..177e0f4 100644 --- a/src/output.rs +++ b/src/output.rs @@ -80,6 +80,7 @@ pub struct ConfigReport { pub timezone: String, pub log_level: String, pub fabric_label: String, + pub output: String, } #[derive(Debug, Serialize)] @@ -246,6 +247,7 @@ fn render_status(report: &StatusReport) { println!(" timezone: {}", report.config.timezone); println!(" logLevel: {}", report.config.log_level); println!(" fabricLabel: {}", report.config.fabric_label); + println!(" output: {}", report.config.output); println!( "Controller storage: {}", if report.storage_initialized { -- cgit v1.2.3