rust/rhg/src/commands/debugrequirements.rs
changeset 49639 37bc3edef76f
parent 46593 5ce2aa7c2ad5
equal deleted inserted replaced
49638:5844cd8e81ca 49639:37bc3edef76f
     2 
     2 
     3 pub const HELP_TEXT: &str = "
     3 pub const HELP_TEXT: &str = "
     4 Print the current repo requirements.
     4 Print the current repo requirements.
     5 ";
     5 ";
     6 
     6 
     7 pub fn args() -> clap::App<'static, 'static> {
     7 pub fn args() -> clap::Command {
     8     clap::SubCommand::with_name("debugrequirements").about(HELP_TEXT)
     8     clap::command!("debugrequirements").about(HELP_TEXT)
     9 }
     9 }
    10 
    10 
    11 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {
    11 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {
    12     let repo = invocation.repo?;
    12     let repo = invocation.repo?;
    13     let mut output = String::new();
    13     let mut output = String::new();