mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +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
|
/// Subvolumes-related commands
|
||||||
#[derive(Subcommand, Debug)]
|
#[derive(Subcommand, Debug)]
|
||||||
enum Subcommands {
|
enum Subcommands {
|
||||||
|
#[command(visible_aliases = ["new"])]
|
||||||
Create {
|
Create {
|
||||||
/// Paths
|
/// Paths
|
||||||
targets: Vec<PathBuf>
|
targets: Vec<PathBuf>
|
||||||
},
|
},
|
||||||
|
|
||||||
|
#[command(visible_aliases = ["del"])]
|
||||||
Delete {
|
Delete {
|
||||||
/// Path
|
/// Path
|
||||||
target: PathBuf
|
target: PathBuf
|
||||||
},
|
},
|
||||||
#[command(allow_missing_positional = true)]
|
|
||||||
|
#[command(allow_missing_positional = true, visible_aliases = ["snap"])]
|
||||||
Snapshot {
|
Snapshot {
|
||||||
/// Make snapshot read only
|
/// Make snapshot read only
|
||||||
#[arg(long, short)]
|
#[arg(long, short)]
|
||||||
|
|||||||
@ -18,6 +18,7 @@ enum Subcommands {
|
|||||||
List(cmd_list::Cli),
|
List(cmd_list::Cli),
|
||||||
Mount(cmd_mount::Cli),
|
Mount(cmd_mount::Cli),
|
||||||
Completions(cmd_completions::Cli),
|
Completions(cmd_completions::Cli),
|
||||||
|
#[command(visible_aliases = ["subvol"])]
|
||||||
Subvolume(cmd_subvolume::Cli),
|
Subvolume(cmd_subvolume::Cli),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user