Context
The CLI has a version command but not the conventional --version flag. After a batch install there is no summary — you scan per-line output.
Scope
- Add
--version (keep -v reserved for verbose to avoid a clash; -h already maps to help — confirm).
- Print a final summary after
install/install_from: e.g. installed X, skipped Y, failed Z. Respect silent.
Boundary
Files: bashdep (main/usage, install), tests/unit/bashdep_test.sh, docs/api.md, CHANGELOG.md. User-visible → CHANGELOG Added.
Acceptance criteria
Constraints (apply to all bashdep work)
- Bash 3.2+ compatible — no
declare -A, ${var,,}/${var^^}, mapfile, negative array index, &>>.
- Zero runtime deps beyond
curl/wget/awk/mktemp/mkdir/rm/cp/mv/printf/cat/grep/sort/tr/dirname/basename + shell builtins.
- TDD: write the failing test first (
tests/unit/*_test.sh), then implement; keep make test green for the right reason. Mock curl/wget — no network in tests.
- Quality gate:
make test && make sa && make lint must all pass.
- Update
docs/api.md / docs/behavior.md when public API or semantics change; add a CHANGELOG.md ## [Unreleased] entry for any user-visible change.
- Conventional commits (
ref: for refactors); never mention AI/automation. One PR per issue, assigned to Chemaclass.
Context
The CLI has a
versioncommand but not the conventional--versionflag. After a batchinstallthere is no summary — you scan per-line output.Scope
--version(keep-vreserved for verbose to avoid a clash;-halready maps to help — confirm).install/install_from: e.g.installed X, skipped Y, failed Z. Respectsilent.Boundary
Files:
bashdep(main/usage,install),tests/unit/bashdep_test.sh,docs/api.md,CHANGELOG.md. User-visible → CHANGELOGAdded.Acceptance criteria
bashdep --versionprints the version;bashdep versionunchanged--silentConstraints (apply to all bashdep work)
declare -A,${var,,}/${var^^},mapfile, negative array index,&>>.curl/wget/awk/mktemp/mkdir/rm/cp/mv/printf/cat/grep/sort/tr/dirname/basename+ shell builtins.tests/unit/*_test.sh), then implement; keepmake testgreen for the right reason. Mockcurl/wget— no network in tests.make test && make sa && make lintmust all pass.docs/api.md/docs/behavior.mdwhen public API or semantics change; add aCHANGELOG.md## [Unreleased]entry for any user-visible change.ref:for refactors); never mention AI/automation. One PR per issue, assigned to Chemaclass.