rust/rhg/src/commands/root.rs
changeset 46501 1ecaf09d9964
parent 46500 184e46550dc8
child 46503 d8730ff51d5a
equal deleted inserted replaced
46500:184e46550dc8 46501:1ecaf09d9964
    10 Print the root directory of the current repository.
    10 Print the root directory of the current repository.
    11 
    11 
    12 Returns 0 on success.
    12 Returns 0 on success.
    13 ";
    13 ";
    14 
    14 
       
    15 pub fn args() -> clap::App<'static, 'static> {
       
    16     clap::SubCommand::with_name("root").about(HELP_TEXT)
       
    17 }
       
    18 
    15 pub fn run(
    19 pub fn run(
    16     ui: &Ui,
    20     ui: &Ui,
    17     config: &Config,
    21     config: &Config,
    18     _args: &ArgMatches,
    22     _args: &ArgMatches,
    19 ) -> Result<(), CommandError> {
    23 ) -> Result<(), CommandError> {