Add automatic config file detection for dashboard TUI

- Dashboard now automatically looks for /etc/cm-dashboard/dashboard.toml
- No need to specify --config flag when using standard NixOS deployment
- Fallback to manual config path if default not found
- Update help text to reflect optional config parameter
- Simplifies dashboard usage - just run 'cm-dashboard' without arguments
This commit is contained in:
2025-10-21 22:11:35 +02:00
parent 3d2b37b26c
commit a6c2983f65
2 changed files with 15 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ struct Cli {
#[arg(short, long, action = clap::ArgAction::Count)]
verbose: u8,
/// Configuration file path (required)
/// Configuration file path (defaults to /etc/cm-dashboard/dashboard.toml)
#[arg(short, long)]
config: Option<String>,