Just create show-help task

This commit is contained in:
Anas Elgarhy 2023-02-17 05:41:16 +02:00
parent 2c9a7f396c
commit fce9c7241b
No known key found for this signature in database
GPG key ID: 0501802A1D496528

View file

@ -1,6 +1,7 @@
#!/usr/bin/env just --justfile
alias r := run
alias h := show-help
alias t := test
alias l := lint
alias c := check
@ -23,6 +24,10 @@ lint:
run:
RUST_BACKTRACE=1 RUST_LOG=debug cargo run --all-features
# Run the program with all features enabled and use the `--help` flag
show-help:
cargo run --all-features -- --help
# Run the tests, and genrate a coverage report
coverage:
CARGO_INCREMENTAL=0 RUSTFLAGS="-Cinstrument-coverage" LLVM_PROFILE_FILE="target/coverage/data/cargo-test-%p-%m.profraw" cargo test --all-features