feat(passthrough): strip redundant -- after a passthrough bin (urfave/cli v3 reorder workaround) #94
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#94
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?
Source:
cmd/coily/passthrough_sep.go-stripPassthroughSeparator, predicateisPassthroughCommandPos.What it does: strips the redundant
--separator immediately after a registered passthrough bin in command position (e.g.coily ops aws -- sts get-caller-identity). Works around urfave/cli v3 reordering trailing flags across--forSkipFlagParsingpassthroughs.Generic core (lift this):
stripPassthroughSeparatoris a pure argv transform fixing a framework-level urfave/cli v3 bug that every guarded passthrough CLI hits.Consumer seam to parameterize:
isPassthroughCommandPoshardcodes coily'sops/pkggroup layout and reads coily's passthrough registries. Replace with a caller-supplied predicatefunc(argv []string, i int) bool(or a registry abstraction).Suggested home (pre-refactor): extend
passthrough.Done when:
godoc-current.txtregenerated (scripts/check-godoc-current.sh --update)make testgreen both sidesclosesthis issueWhy first: smallest surface, pure transform, single-predicate seam, and it benefits every consumer the moment it lands - good candidate to set the extraction pattern.
Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.