parity: readme drift test cannot see string-dispatched subcommands - worktree status/rebase shipped as fiction #169
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TestReadmeCommandRefsResolvewalks each README invocation down the live cobra tree and treats tokens after the last match as positional args.madtea worktreedispatches its subcommands as strings insiderunWorktree(internal/cmd/git/worktree.go), somadtea worktree statusresolved as worktree-plus-positional and passed - while the CLI actually supports only list/add/remove/prune. The README taughtworktree status,worktree rebase, and a-bflag onworktree add, none of which exist on the CLI (status and rebase live only onmadt_worktrees; add takes the branch positionally). Fixed in the readme-edits batch, but the guard's charter is "a rename, removal, or typo on the front page fails CI instead of shipping fiction" - and it shipped fiction.Two gaps to close:
worktree's string switch should be real cobra subcommands (the wayissue bodydoes it), so introspection,--help, and the drift test all see the true surface.-bnever existed and was not caught either - the scanner should validate short flags in README examples, not just--longones.Acceptance:
worktree status,worktree rebase, andworktree add -bmadtea worktree --helplists the real subcommands