feat(justfile): add dev-clean / dev-clean-all teardown recipes #71

Merged
David merged 1 commit from feat/dev-clean-recipes into main 2026-06-13 19:47:25 +02:00
Owner

Adds the canonical dev-clean / dev-clean-all teardown recipes, per GOV-7 (governance template templates/justfile/cleanup.just).

  • dev-clean brings down the compose.dev.yml stack with down --remove-orphans (containers plus default network), removes this user's per-USER-suffixed cargo named volumes (dev-youtrack-cli-cargo-registry, dev-youtrack-cli-cargo-git, dev-youtrack-cli-cargo-target) guarded by a docker volume ls membership check, and deletes the local build artifacts target/ and dist/ guarded by path exists.
  • dev-clean-all additionally removes the locally built images youtrack-cli:check and youtrack-cli:local (each guarded by docker image inspect) and runs docker buildx prune --force.
  • Aligns an existing recipe: the old [dev]-group dev-clean (compose down plus the same three cargo volumes) is replaced by the new [cleanup]-group pair, with its compose-down and volume teardown folded in. No divergent clean recipes remain.

Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified just --list parses and groups both under [cleanup].

Part of the GOV-7 rollout; tracked there rather than via a per-repo issue.

🤖 Generated with Claude Code

Adds the canonical `dev-clean` / `dev-clean-all` teardown recipes, per GOV-7 (governance template `templates/justfile/cleanup.just`). - `dev-clean` brings down the `compose.dev.yml` stack with `down --remove-orphans` (containers plus default network), removes this user's per-`USER`-suffixed cargo named volumes (`dev-youtrack-cli-cargo-registry`, `dev-youtrack-cli-cargo-git`, `dev-youtrack-cli-cargo-target`) guarded by a `docker volume ls` membership check, and deletes the local build artifacts `target/` and `dist/` guarded by `path exists`. - `dev-clean-all` additionally removes the locally built images `youtrack-cli:check` and `youtrack-cli:local` (each guarded by `docker image inspect`) and runs `docker buildx prune --force`. - Aligns an existing recipe: the old `[dev]`-group `dev-clean` (compose down plus the same three cargo volumes) is replaced by the new `[cleanup]`-group pair, with its compose-down and volume teardown folded in. No divergent clean recipes remain. Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified `just --list` parses and groups both under `[cleanup]`. Part of the GOV-7 rollout; tracked there rather than via a per-repo issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(justfile): add dev-clean / dev-clean-all teardown recipes
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 28s
Create release / Create release from merged PR (pull_request) Has been skipped
79381c1b07
Replaces the old [dev]-group dev-clean with the canonical [cleanup]-group pair from GOV-7: dev-clean brings down the compose.dev.yml stack (containers plus default network), removes this user's per-USER-suffixed cargo named volumes (dev-youtrack-cli-cargo-registry/git/target) guarded by a `docker volume ls` membership check, and deletes the local build artifacts target/ and dist/ guarded by `path exists`; dev-clean-all additionally removes the locally built images youtrack-cli:check and youtrack-cli:local (each guarded by `docker image inspect`) and runs `docker buildx prune --force`. Both stay scoped to this repo with no host-global prune.

#GOV-7
David merged commit 4a16163d92 into main 2026-06-13 19:47:25 +02:00
David deleted branch feat/dev-clean-recipes 2026-06-13 19:47:25 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pandoras-box/youtrack-cli!71
No description provided.