feat(espanso): clarify 'espanso service' usage. Fix #920
This commit is contained in:
parent
68e2698a9c
commit
7588900c06
|
@ -103,6 +103,8 @@ fn service_main(args: CliModuleArgs) -> i32 {
|
||||||
stop_main(&paths);
|
stop_main(&paths);
|
||||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||||
return start_main(&paths, &paths_overrides, sub_args);
|
return start_main(&paths, &paths_overrides, sub_args);
|
||||||
|
} else {
|
||||||
|
eprintln!("Invalid usage, please run `espanso service --help` for more information.");
|
||||||
}
|
}
|
||||||
|
|
||||||
SERVICE_SUCCESS
|
SERVICE_SUCCESS
|
||||||
|
|
|
@ -360,7 +360,7 @@ For example, specifying 'email' is equivalent to 'match/email.yml'."#))
|
||||||
.subcommand(restart_subcommand.clone())
|
.subcommand(restart_subcommand.clone())
|
||||||
.subcommand(stop_subcommand.clone())
|
.subcommand(stop_subcommand.clone())
|
||||||
.subcommand(status_subcommand.clone())
|
.subcommand(status_subcommand.clone())
|
||||||
.about("Register and manage 'espanso' as a system service."),
|
.about("A collection of commands to manage the Espanso service (for example, enabling auto-start on system boot)."),
|
||||||
)
|
)
|
||||||
.subcommand(start_subcommand)
|
.subcommand(start_subcommand)
|
||||||
.subcommand(restart_subcommand)
|
.subcommand(restart_subcommand)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user