##// END OF EJS Templates
rhg: pass `ui` to `Command` `run`...
rhg: pass `ui` to `Command` `run` Allow implementation of `From<clap::ArgMatches> for Command` Differential Revision: https://phab.mercurial-scm.org/D8954

File last commit:

r46009:ed95ccc9 default
r46009:ed95ccc9 default
Show More
commands.rs
11 lines | 261 B | application/rls-services+xml | RustLexer
Antoine Cezar
rhg: add a `Files` `Command` to prepare the `rhg files` subcommand...
r45923 pub mod files;
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 pub mod root;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 use crate::error::CommandError;
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 use crate::ui::Ui;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 pub trait Command {
fn run(&self, ui: &Ui) -> Result<(), CommandError>;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 }