feat(completion): new package - urfave/cli v3 shell completion installer #96
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#96
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/ops_install_completion.go- theinstall-completionverb,detectShell(), and the bash/zsh/fish script templates.What it does: detects the shell from
$SHELL, writes a sourceable completion script wiring the binary into urfave/cli's--generate-shell-completionprotocol, with--dry-runand printed activation instructions.Generic core (lift this): the three completion script templates are standard urfave/cli v3 boilerplate;
detectShell()is fully generic.Consumer seam to parameterize: the literal
coilytoken threaded through every script body, the install paths (~/.local/share/coily/...,~/.config/fish/completions/coily.fish), and the instruction strings -> onebinName stringargument with all paths/templates derived from it.Suggested home (pre-refactor): new
completionpackage, or fold intoshell.Done when:
godoc-current.txtregenerated (scripts/check-godoc-current.sh --update)make testgreen both sidesclosesthis issueWhy it matters: pure boilerplate every guarded CLI re-implements; single-parameter extraction.
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.