nushell/CONTRIBUTING.md
Hristo Filaretov 8a9cc33aac
Fix alias import (#4968)
* Fix alias import

Alias importing was registering the alias id as a decl instead of alias.
This caused issues when hiding and then reimporting the alias.

* Clippy format

Co-authored-by: Hristo Filaretov <h.filaretov@protonmail.com>
2022-03-25 17:56:40 -05:00

1.7 KiB

Contributing

Welcome to nushell!

Note: for a more complete guide see The nu contributor book

For speedy contributions open it in Gitpod, nu will be pre-installed with the latest build in a VSCode like editor all from your browser.

Open in Gitpod

To get live support from the community see our Discord, Twitter or file an issue or feature request here on GitHub!

Developing

Set up

This is no different than other Rust projects.

git clone https://github.com/nushell/nushell
cd nushell
cargo build

Useful Commands

  • Build and run Nushell:

    cargo build --release && cargo run --release
    
  • Build and run with extra features:

    cargo build --release --features=extra && cargo run --release --features=extra
    
  • Run Clippy on Nushell:

    cargo clippy --all --features=stable
    
  • Run all tests:

    cargo test --all --features=stable
    
  • Run all tests for a specific command

    cargo test --package nu-cli --test main -- commands::<command_name_here>
    
  • Check to see if there are code formatting issues

    cargo fmt --all -- --check
    
  • Format the code in the project

    cargo fmt --all
    

Debugging Tips

  • To view verbose logs when developing, enable the trace log level.

    cargo build --release --features=extra && cargo run --release --features=extra -- --log-level trace