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
Build and run Nushell:
- Build and run Nushell:
```shell
cargo build --release && cargo run --release
```
```shell
cargo build --release && cargo run --release
```
Run Clippy on Nushell:
- Run Clippy on Nushell:
```shell
cargo clippy --all --features=stable
```
```shell
cargo clippy --all --features=stable
```
Run all tests:
- Run all tests:
```shell
cargo test --all --features=stable
```
```shell
cargo test --all --features=stable
```
Run all tests for a specific command
- Run all tests for a specific command
```shell
cargo test --package nu-cli --test main -- commands::<command_name_here>
```
```shell
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
cargo fmt --all -- --check
```
```shell
cargo fmt --all -- --check
```
Format the code in the project
- Format the code in the project
```shell
cargo fmt --all
```
```shell
cargo fmt --all
```