feat: add aliases for new and build

This commit is contained in:
Edgar 2024-03-27 12:46:27 +01:00
parent 9b7cddd399
commit 4aa8b2078e
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387

View file

@ -23,6 +23,7 @@ pub struct Cli {
#[derive(Subcommand, Debug)] #[derive(Subcommand, Debug)]
enum Commands { enum Commands {
/// Initialize a project /// Initialize a project
#[clap(alias = "n")]
New { New {
path: PathBuf, path: PathBuf,
@ -39,6 +40,7 @@ enum Commands {
lib: bool, lib: bool,
}, },
/// Build a project /// Build a project
#[clap(alias = "b")]
Build { Build {
/// Build for release with all optimizations. /// Build for release with all optimizations.
#[arg(short, long, default_value_t = false)] #[arg(short, long, default_value_t = false)]