mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-27 15:40:03 +08:00
style: naming
This commit is contained in:
@@ -8,7 +8,7 @@ pub type CommandError = XResult<Option<i32>>;
|
|||||||
pub trait Command {
|
pub trait Command {
|
||||||
fn name(&self) -> &str;
|
fn name(&self) -> &str;
|
||||||
fn subcommand<'a>(&self) -> App<'a, 'a>;
|
fn subcommand<'a>(&self) -> App<'a, 'a>;
|
||||||
fn run(&self, arg_matches: &ArgMatches, _: &ArgMatches) -> CommandError;
|
fn run(&self, arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait DefaultCommand {
|
pub trait DefaultCommand {
|
||||||
|
|||||||
Reference in New Issue
Block a user