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