A very simple third-party cargo subcommand to execute a custom command
cargo install cargo-x
or upgrade
cargo install -f cargo-x
x.toml
in "name = detail"
format like
ls = "ls -ltr"
or same lines in file ~/.x.toml
,
or in [package.metadata.x]
section in Cargo.toml
file.
note that DO NOT
use key x like x = "any command"
, cargo-x x
will run into problem,
because it does not know if it is using cargo-x x
or cargo x
.
``` cargo x ls
cargo-x ls
x ls ```
Licensed under either of these:
Please sign a cla, thanks!