##// 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 .version("0.0.1")
16 .version("0.0.1")
17 .subcommand(
17 .subcommand(
18 SubCommand::with_name("root").about(commands::root::HELP_TEXT),
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 let matches = app.clone().get_matches_safe().unwrap_or_else(|_| {
24 let matches = app.clone().get_matches_safe().unwrap_or_else(|_| {
@@ -27,6 +30,7 b' fn main() {'
27 let command_result = match matches.subcommand_name() {
30 let command_result = match matches.subcommand_name() {
28 Some(name) => match name {
31 Some(name) => match name {
29 "root" => commands::root::RootCommand::new(&ui).run(),
32 "root" => commands::root::RootCommand::new(&ui).run(),
33 "files" => commands::files::FilesCommand::new(&ui).run(),
30 _ => std::process::exit(exitcode::UNIMPLEMENTED_COMMAND),
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