fix: add short names for commands
This commit is contained in:
+4
-3
@@ -9,6 +9,7 @@ use clap::{ArgGroup, Parser};
|
|||||||
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick", "this"]))]
|
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick", "this"]))]
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
/// Project name from deploy.toml
|
/// Project name from deploy.toml
|
||||||
|
#[arg(short, long)]
|
||||||
pub project: Option<String>,
|
pub project: Option<String>,
|
||||||
/// Explicit path to the config file
|
/// Explicit path to the config file
|
||||||
#[arg(long, value_name = "PATH")]
|
#[arg(long, value_name = "PATH")]
|
||||||
@@ -17,15 +18,15 @@ pub struct Cli {
|
|||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub dry_run: bool,
|
pub dry_run: bool,
|
||||||
/// List configured projects and exit
|
/// List configured projects and exit
|
||||||
#[arg(long)]
|
#[arg(short, long)]
|
||||||
pub list: bool,
|
pub list: bool,
|
||||||
/// List configured servers and exit
|
/// List configured servers and exit
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub list_servers: bool,
|
pub list_servers: bool,
|
||||||
/// Interactively pick a project to deploy (fuzzy search)
|
/// Interactively pick a project to deploy (fuzzy search)
|
||||||
#[arg(long)]
|
#[arg(short, long)]
|
||||||
pub pick: bool,
|
pub pick: bool,
|
||||||
/// Deploy the project whose workdir matches the current folder (global config)
|
/// Deploy the project whose workdir matches the current folder (global config)
|
||||||
#[arg(long)]
|
#[arg(short, long)]
|
||||||
pub this: bool,
|
pub this: bool,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user