##// END OF EJS Templates
rhg: add Command trait for subcommands implemented by rhg...
rhg: add Command trait for subcommands implemented by rhg Normalizes the interface of the cli's commands Differential Revision: https://phab.mercurial-scm.org/D8611

File last commit:

r45504:0b950a32 default
r45504:0b950a32 default
Show More
commands.rs
8 lines | 204 B | application/rls-services+xml | RustLexer
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>;
}