A very simple third-party cargo subcommand to execute a custom command
Install cargo-x:
cargo install cargo-xUpgrade an existing install:
cargo install -f cargo-xAdd commands in x.toml:
ls = "ls -ltr"
test = "cargo test --workspace --all-targets"You can define commands in these places. Later files override earlier ones when the same command key is used:
~/.x.tomlx.tomlnext to the current packageCargo.toml[package.metadata.x]in the current packageCargo.toml
The key x is reserved. Do not configure x = "any command".
Run a configured command:
cargo x ls
# or
cargo-x ls
# or
x lsLicensed under either of these:
- Apache License Version 2.0 LICENSE-APACHE
- MIT License LICENSE-MIT
Please sign a cla, thanks!