fix(ui): auto-start daemon on status query if not running
This commit is contained in:
parent
137f97749a
commit
e4655cde0b
1 changed files with 1 additions and 0 deletions
|
|
@ -233,6 +233,7 @@ fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
return send_command(Command::ReloadConfig);
|
||||
}
|
||||
"--status" => {
|
||||
ensure_daemon_running();
|
||||
match query_status() {
|
||||
Ok(st) => {
|
||||
println!("Daemon Status:");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue