commands.rs
9 lines
| 222 B
| application/rls-services+xml
|
RustLexer
|
r45592 | pub mod root; | ||
|
r45515 | use crate::error::CommandError; | ||
/// The common trait for rhg commands | ||||
/// | ||||
/// Normalize the interface of the commands provided by rhg | ||||
|
r45920 | pub trait Command<'a> { | ||
|
r45515 | fn run(&self) -> Result<(), CommandError>; | ||
} | ||||