Add subcommand aliases
This commit is contained in:
parent
1ed358a0b2
commit
19c53e0ee8
2 changed files with 12 additions and 0 deletions
|
|
@ -8,9 +8,14 @@ mod tidy;
|
|||
|
||||
#[derive(Debug, Parser)]
|
||||
pub enum Command {
|
||||
#[command(visible_alias = "s")]
|
||||
Status(status::Command),
|
||||
|
||||
#[command(visible_alias = "t")]
|
||||
Tidy(tidy::Command),
|
||||
|
||||
#[command(subcommand)]
|
||||
#[command(visible_alias = "r")]
|
||||
Repo(repo::Command),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,9 +10,16 @@ use crate::Environment;
|
|||
/// Perform repo operations.
|
||||
#[derive(Debug, Parser)]
|
||||
pub enum Command {
|
||||
#[command(visible_alias = "l")]
|
||||
List(list::Command),
|
||||
|
||||
#[command(visible_alias = "s")]
|
||||
Show(show::Command),
|
||||
|
||||
#[command(visible_alias = "a")]
|
||||
Add(add::Command),
|
||||
|
||||
#[command(visible_alias = "r")]
|
||||
Remove(remove::Command),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue