commands.rs
11 lines
| 261 B
| application/rls-services+xml
|
RustLexer
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 | } | ||