mirror of
https://github.com/edg-l/edlang.git
synced 2024-10-18 07:03:42 +00:00
feat: add aliases for new and build
This commit is contained in:
parent
9b7cddd399
commit
4aa8b2078e
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue