mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
feat: add aliases for a few subcommands
This commit is contained in:
parent
428948e120
commit
4327e0681b
@ -14,15 +14,19 @@ pub struct Cli {
|
||||
/// Subvolumes-related commands
|
||||
#[derive(Subcommand, Debug)]
|
||||
enum Subcommands {
|
||||
#[command(visible_aliases = ["new"])]
|
||||
Create {
|
||||
/// Paths
|
||||
targets: Vec<PathBuf>
|
||||
},
|
||||
|
||||
#[command(visible_aliases = ["del"])]
|
||||
Delete {
|
||||
/// Path
|
||||
target: PathBuf
|
||||
},
|
||||
#[command(allow_missing_positional = true)]
|
||||
|
||||
#[command(allow_missing_positional = true, visible_aliases = ["snap"])]
|
||||
Snapshot {
|
||||
/// Make snapshot read only
|
||||
#[arg(long, short)]
|
||||
|
||||
@ -18,6 +18,7 @@ enum Subcommands {
|
||||
List(cmd_list::Cli),
|
||||
Mount(cmd_mount::Cli),
|
||||
Completions(cmd_completions::Cli),
|
||||
#[command(visible_aliases = ["subvol"])]
|
||||
Subvolume(cmd_subvolume::Cli),
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user