rust/rhg/src/commands.rs
changeset 44982 bacf6c7ef01b
child 45049 513b3ef277a3
equal deleted inserted replaced
44981:cf04f62d1579 44982:bacf6c7ef01b
       
     1 use crate::error::CommandError;
       
     2 
       
     3 /// The common trait for rhg commands
       
     4 ///
       
     5 /// Normalize the interface of the commands provided by rhg
       
     6 pub trait Command {
       
     7     fn run(&self) -> Result<(), CommandError>;
       
     8 }