cli: add short alias for build and test commands (#1823)

This commit is contained in:
Blas Rodriguez Irizar 2022-04-22 23:04:05 +02:00 committed by GitHub
parent ed15922f1a
commit cb4549fdf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ The minor version will be incremented upon a breaking change and the patch versi
* cli: Add compilation optimizations to cli template ([#1807](https://github.com/project-serum/anchor/pull/1807)).
* cli: `build` now adds docs to idl. This can be turned off with `--no-docs` ([#1561](https://github.com/project-serum/anchor/pull/1561)).
* lang: Add `PartialEq` and `Eq` for `anchor_lang::Error` ([#1544](https://github.com/project-serum/anchor/pull/1544)).
* cli: Add `b` and `t` aliases for `build` and `test` respectively ([#1823](https://github.com/project-serum/anchor/pull/1823)).
### Fixes

View File

@ -71,6 +71,7 @@ pub enum Command {
no_git: bool,
},
/// Builds the workspace.
#[clap(name = "build", alias = "b")]
Build {
/// Output directory for the IDL.
#[clap(short, long)]
@ -157,6 +158,7 @@ pub enum Command {
)]
cargo_args: Vec<String>,
},
#[clap(name = "test", alias = "t")]
/// Runs integration tests against a localnetwork.
Test {
/// Use this flag if you want to run tests against previously deployed