# HG changeset patch # User Antoine Cezar # Date 2020-07-17 15:24:54 # Node ID 26440adbe3e9c7483c0fc64906b4391b1626650f # Parent 5fe25f8ef5d9b7f62292981c6add81b70f1ead5d rhg: add a limited `rhg files` subcommand Differential Revision: https://phab.mercurial-scm.org/D8869 diff --git a/rust/rhg/src/main.rs b/rust/rhg/src/main.rs --- a/rust/rhg/src/main.rs +++ b/rust/rhg/src/main.rs @@ -16,6 +16,9 @@ fn main() { .version("0.0.1") .subcommand( SubCommand::with_name("root").about(commands::root::HELP_TEXT), + ) + .subcommand( + SubCommand::with_name("files").about(commands::files::HELP_TEXT), ); let matches = app.clone().get_matches_safe().unwrap_or_else(|_| { @@ -27,6 +30,7 @@ fn main() { let command_result = match matches.subcommand_name() { Some(name) => match name { "root" => commands::root::RootCommand::new(&ui).run(), + "files" => commands::files::FilesCommand::new(&ui).run(), _ => std::process::exit(exitcode::UNIMPLEMENTED_COMMAND), }, _ => {