rust/rhg/src/commands.rs
changeset 46500 184e46550dc8
parent 46484 a6e4e4650bac
equal deleted inserted replaced
46499:eace48b4a786 46500:184e46550dc8
     1 pub mod cat;
     1 pub mod cat;
     2 pub mod debugdata;
     2 pub mod debugdata;
     3 pub mod debugrequirements;
     3 pub mod debugrequirements;
     4 pub mod files;
     4 pub mod files;
     5 pub mod root;
     5 pub mod root;
     6 use crate::error::CommandError;
       
     7 use crate::ui::Ui;
       
     8 use hg::config::Config;
       
     9 
       
    10 /// The common trait for rhg commands
       
    11 ///
       
    12 /// Normalize the interface of the commands provided by rhg
       
    13 pub trait Command {
       
    14     fn run(&self, ui: &Ui, config: &Config) -> Result<(), CommandError>;
       
    15 }