[vars]
binary = "xeq"
commit_msg = ""
[fmt]
description = "Format code"
run = ["cargo fmt"]
[lint]
description = "Run clippy"
run = ["cargo clippy -- -D warnings"]
[test]
description = "Run all tests"
run = ["cargo test"]
[check]
description = "Run fmt, lint and tests in parallel"
options = ["parallel"]
run = [
"xeq://fmt",
"xeq://lint",
"xeq://test"
]
[build]
description = "Build release binary"
run = ["cargo build --release"]
[release]
description = "Check, build, commit, tag and push — usage: xeq run release --args v1.7.0 commit_msg=\"msg\""
run = [
"xeq://check",
"git add -A",
"git commit -m {{1}} {{@commit_msg}}",
"git tag {{1}}",
"git push",
"git push origin {{1}}"
]