equal
deleted
inserted
replaced
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 } |
|