mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01:00
Add useful commands to CONTRIBUTING.md (#1865)
* Add useful commands to CONTRIBUTING.md * Add some formatting commands
This commit is contained in:
parent
e1b598d478
commit
d488fddfe1
@ -19,10 +19,40 @@ cd nushell
|
|||||||
cargo build
|
cargo build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tests
|
## Useful Commands
|
||||||
|
|
||||||
Run tests with:
|
Build and run Nushell:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cargo build --release && cargo run --release
|
||||||
|
```
|
||||||
|
|
||||||
|
Run Clippy on Nushell:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cargo clippy --all --features=stable
|
||||||
|
```
|
||||||
|
|
||||||
|
Run all tests:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cargo test --all --features=stable
|
cargo test --all --features=stable
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run all tests for a specific command
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cargo test --package nu-cli --test main -- commands::<command_name_here>
|
||||||
|
```
|
||||||
|
|
||||||
|
Check to see if there are code formatting issues
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cargo fmt --all -- --check
|
||||||
|
```
|
||||||
|
|
||||||
|
Format the code in the project
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cargo fmt --all
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user