#execute #cmd #command #x #exec

bin+lib cargo-x

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

9 releases

✓ Uses Rust 2018 edition

0.3.4 Jan 7, 2019
0.3.3 Dec 24, 2018
0.2.2 Dec 20, 2018
0.1.1 Dec 18, 2018

#76 in Cargo plugins

Download history 138/week @ 2018-12-24 11/week @ 2018-12-31 22/week @ 2019-01-07

57 downloads per month

MIT license

8KB
200 lines

cargo-x

Build Status

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

MIT

Dependencies

~4.5MB
~80K SLoC