##// END OF EJS Templates
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root` The println macro is not used to avoid string usage. Dealing only with bytes allows us to be compatible with any encoding and not just UTF8. Later on, format macro will be made to have more readable code. Differential Revision: https://phab.mercurial-scm.org/D8612

File last commit:

r45570:afecc7f7 default
r45570:afecc7f7 default
Show More
commands.rs
9 lines | 218 B | application/rls-services+xml | RustLexer
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45570 pub mod root;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 use crate::error::CommandError;
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
fn run(&self) -> Result<(), CommandError>;
}