#cargo #cmd #npm

app cargo-cmd

Like npm scripts, but for cargo

1 unstable release

0.1.0 Sep 10, 2018
Download history 8/week @ 2018-09-10

2 downloads per month

MIT license

6KB
152 lines

cargo-cmd

Like npm scripts, but for cargo.

Installation

cargo install cargo-cmd

Usage

You can define your commands in Cargo.toml under the [package.metadata.commands] table, like so:

[package.metadata.commands]
greet = "echo 'Hello, planet!'"

Now you can run cargo cmd greet:

$ cargo cmd greet
> echo 'Hello, planet!'
Hello, planet!

License

MIT © Dan Reeves

Dependencies

~2MB
~41K SLoC