aboutsummaryrefslogtreecommitdiffstats
path: root/mumctl/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumctl/src/main.rs')
-rw-r--r--mumctl/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs
index 44c5d26..e55796b 100644
--- a/mumctl/src/main.rs
+++ b/mumctl/src/main.rs
@@ -78,6 +78,8 @@ fn main() {
SubCommand::with_name("config")
.arg(Arg::with_name("name").required(true))
.arg(Arg::with_name("value").required(true)))
+ .subcommand(
+ SubCommand::with_name("config-reload"))
.subcommand(SubCommand::with_name("completions")
.arg(Arg::with_name("zsh")
.long("zsh"))
@@ -256,6 +258,8 @@ fn main() {
println!("{} Unknown config value {}", "error:".red(), name);
}
}
+ } else if matches.subcommand_matches("config-reload").is_some() {
+ send_command(Command::ConfigReload).unwrap();
} else if let Some(matches) = matches.subcommand_matches("completions") {
app.gen_completions_to(
"mumctl",