#x #exec #execute #cmd #command

bin+lib cargo-x

A very simple third-party cargo subcommand to execute a custom command

11 releases

✓ Uses Rust 2018 edition

0.3.6 Mar 15, 2019
0.3.5 Jan 8, 2019
0.3.3 Dec 24, 2018
0.2.2 Dec 20, 2018
0.1.1 Dec 18, 2018

#118 in Cargo plugins

Download history 103/week @ 2019-12-07 3/week @ 2019-12-14 4/week @ 2019-12-21 12/week @ 2019-12-28 1/week @ 2020-01-04 55/week @ 2020-01-11 34/week @ 2020-01-18 1/week @ 2020-01-25 12/week @ 2020-02-08 11/week @ 2020-02-15 64/week @ 2020-02-22 23/week @ 2020-03-07 11/week @ 2020-03-14 67/week @ 2020-03-21

93 downloads per month

MIT/Apache

9KB
207 lines

cargo-x

Build Status APACHE licensed MIT licensed crates.io Released API docs

A very simple third-party cargo subcommand to execute a custom command

Usage

  1. install cargo-x
cargo install cargo-x

or upgrade

cargo install -f cargo-x
  1. write a config file 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.

  1. use cargo-x
cargo x ls
# or
cargo-x ls
# or
x ls

License

Licensed under either of these:

Contributing

Please sign a cla, thanks!

Dependencies

~2.3–3.5MB
~83K SLoC