Mercurial > hg-stable
changeset 45385:26440adbe3e9
rhg: add a limited `rhg files` subcommand
Differential Revision: https://phab.mercurial-scm.org/D8869
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Fri, 17 Jul 2020 17:24:54 +0200 |
parents | 5fe25f8ef5d9 |
children | 10c36ead86f8 |
files | rust/rhg/src/main.rs |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Wed Jul 29 10:21:17 2020 +0200 +++ b/rust/rhg/src/main.rs Fri Jul 17 17:24:54 2020 +0200 @@ -16,6 +16,9 @@ .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 @@ 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), }, _ => {