-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #5
- Loading branch information
Showing
4 changed files
with
146 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cargo-cmd" | ||
description = "Like npm scripts, but for cargo" | ||
description = "Alias any shell command in your Cargo.toml. It's like npm scripts, but for cargo." | ||
version = "0.2.1" | ||
authors = ["Dan Reeves <[email protected]>"] | ||
repository = "https://github.com/danreeves/cargo-cmd" | ||
|
@@ -13,16 +13,30 @@ keywords = ["cargo", "cmd", "scripts", "commands", "npm"] | |
echo = "echo" | ||
greet = "cargo cmd echo 'Hello, planet!'" | ||
dev = "cargo watch -s 'clear; cargo build && cargo cmd greet'" | ||
|
||
pass = "exit 0" | ||
fail = "exit 42" | ||
|
||
prechain = "echo 1" | ||
chain = "echo 2" | ||
postchain = "echo 3" | ||
|
||
prefailchain = "exit 42" | ||
failchain = "echo 2" | ||
|
||
pretest = "echo pre" | ||
test = "cargo test" | ||
posttest = "echo post" | ||
|
||
[dependencies] | ||
toml = "0.4.8" | ||
serde_derive = "1.0.79" | ||
serde = "1.0.79" | ||
subprocess = "0.1.16" | ||
structopt = "0.2.12" | ||
clap = "2.32.0" | ||
|
||
[dev-dependencies] | ||
assert_cli = "0.6.3" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters