Like npm scripts, but for cargo
Switch branches/tags
Nothing to show
Clone or download

README.md

cargo-cmd

crates.io version build status docs.rs docs license

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