CONTRIBUTING: useful commands as list (#2448)

This commit is contained in:
Marco Ieni 2020-08-30 05:33:28 +02:00 committed by GitHub
parent c14b209276
commit 634bb688c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,38 +25,38 @@ cargo build
### Useful Commands ### Useful Commands
Build and run Nushell: - Build and run Nushell:
```shell ```shell
cargo build --release && cargo run --release cargo build --release && cargo run --release
``` ```
Run Clippy on Nushell: - Run Clippy on Nushell:
```shell ```shell
cargo clippy --all --features=stable cargo clippy --all --features=stable
``` ```
Run all tests: - Run all tests:
```shell ```shell
cargo test --all --features=stable cargo test --all --features=stable
``` ```
Run all tests for a specific command - Run all tests for a specific command
```shell ```shell
cargo test --package nu-cli --test main -- commands::<command_name_here> cargo test --package nu-cli --test main -- commands::<command_name_here>
``` ```
Check to see if there are code formatting issues - Check to see if there are code formatting issues
```shell ```shell
cargo fmt --all -- --check cargo fmt --all -- --check
``` ```
Format the code in the project - Format the code in the project
```shell ```shell
cargo fmt --all cargo fmt --all
``` ```