git-workflow 0.1.2

Git workflow CLI - type-safe worktree-aware git operations with GitHub integration
Documentation
[tools]
rust = "1.85"

[tasks.verify]
description = "Run all checks (fmt, lint, test, build)"
depends = ["fmt", "lint", "test", "build"]

[tasks.fmt]
description = "Check code formatting"
run = "cargo fmt --all -- --check"

[tasks."fmt:fix"]
description = "Fix code formatting"
run = "cargo fmt --all"

[tasks.lint]
description = "Run clippy lints"
run = "cargo clippy --all-targets --all-features -- -D warnings"

[tasks."lint:fix"]
description = "Fix clippy lints where possible"
run = "cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged -- -D warnings"

[tasks.test]
description = "Run tests"
run = "cargo test"

[tasks.build]
description = "Build debug binary"
run = "cargo build"

[tasks."build:release"]
description = "Build release binary"
run = "cargo build --release"

[tasks."install"]
description = "Build and install gw locally (for dogfooding)"
run = "cargo install --path ."
depends = ["build:release"]

[tasks."cleanup"]
description = "Cleanup merged branch and reinstall gw (main worktree only)"
run = """
gw cleanup
if [ "$(git rev-parse --git-dir)" = "$(git rev-parse --git-common-dir)" ]; then
  echo "Main worktree detected, reinstalling gw..."
  cargo install --path .
else
  echo "Worktree detected, skipping install (run from main worktree)"
fi
"""
depends = ["build:release"]