src.nth.io/

summaryrefslogtreecommitdiff
path: root/src/output.rs
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-07-29 10:33:02 -0500
committerLuke Hoersten <[email protected]>2026-07-29 10:33:02 -0500
commit78772329dc625b76bc1cbca61e0ed4912e93e0c8 (patch)
tree70e7cd62c241b2227402dc376f19350dccc5ae6c /src/output.rs
parent5c81b970819e8d38413a5dc02d56b7f182715e8a (diff)
config: make all fields and the file optional; add output format; default logLevel to warnHEADmain
- 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
Diffstat (limited to 'src/output.rs')
-rw-r--r--src/output.rs2
1 files changed, 2 insertions, 0 deletions
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 {