##// END OF EJS Templates
rhg: add a limited `rhg files` subcommand...
Antoine Cezar -
r45924:26440adb default
parent child Browse files
Show More
@@ -16,6 +16,9 b' fn main() {'
16 16 .version("0.0.1")
17 17 .subcommand(
18 18 SubCommand::with_name("root").about(commands::root::HELP_TEXT),
19 )
20 .subcommand(
21 SubCommand::with_name("files").about(commands::files::HELP_TEXT),
19 22 );
20 23
21 24 let matches = app.clone().get_matches_safe().unwrap_or_else(|_| {
@@ -27,6 +30,7 b' fn main() {'
27 30 let command_result = match matches.subcommand_name() {
28 31 Some(name) => match name {
29 32 "root" => commands::root::RootCommand::new(&ui).run(),
33 "files" => commands::files::FilesCommand::new(&ui).run(),
30 34 _ => std::process::exit(exitcode::UNIMPLEMENTED_COMMAND),
31 35 },
32 36 _ => {
General Comments 0
You need to be logged in to leave comments. Login now