commands.rs
13 lines
| 293 B
| application/rls-services+xml
|
RustLexer
|
r46113 | pub mod cat; | ||
|
r46099 | pub mod debugdata; | ||
|
r45923 | pub mod files; | ||
|
r45592 | pub mod root; | ||
|
r45515 | use crate::error::CommandError; | ||
|
r46009 | use crate::ui::Ui; | ||
|
r45515 | |||
/// The common trait for rhg commands | ||||
/// | ||||
/// Normalize the interface of the commands provided by rhg | ||||
|
r46009 | pub trait Command { | ||
fn run(&self, ui: &Ui) -> Result<(), CommandError>; | ||||
|
r45515 | } | ||