Patchwork D8779: rhg: add a limited `rhg files` subcommand

login
register
mail settings
Submitter phabricator
Date July 21, 2020, 2:07 p.m.
Message ID <differential-rev-PHID-DREV-gx2zx4jgnfypywvvde2s-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46821/
State Superseded
Headers show

Comments

phabricator - July 21, 2020, 2:07 p.m.
acezar created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8779

AFFECTED FILES
  rust/rhg/src/main.rs

CHANGE DETAILS




To: acezar, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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 @@ 
         .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),
         },
         _ => {