Documentation
¶
Overview ¶
Package completions implements `focus completions <shell>` and the hidden `focus _complete <kind>` candidate producer used by the embedded shell scripts.
The three shell scripts (bash.sh, zsh.zsh, fish.fish) are embedded at build time via go:embed and printed verbatim; users pipe the output into `eval` (bash/zsh) or redirect it to fish's completion dir.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Priorities = []string{"p0", "p1", "p2", "p3"}
Priorities is the canonical priority list. p0 highest.
var PublicSubcommands = []string{
"init", "new", "show", "edit", "board", "list",
"activate", "park", "done", "kill", "revive",
"reindex", "epic", "mcp", "tui", "completions",
"version", "help",
}
PublicSubcommands is the list of subcommands the user can invoke. Hidden commands (like `_complete`) are deliberately omitted.
var Statuses = []string{"active", "backlog", "done", "archived"}
Statuses is the canonical status list.
var Types = []string{"card", "epic"}
Types is the canonical card type list.
Functions ¶
func PrintIDs ¶
PrintIDs writes one bare card id per line, ordered by id, filtered by f. Bare ints (e.g. "1", not "0001") because that's what the shell user types: `focus done 1`.
func PrintPriorities ¶
PrintPriorities writes p0..p3 one per line.
func PrintStatuses ¶
PrintStatuses writes the four statuses one per line.
func PrintSubcommands ¶
PrintSubcommands writes the public subcommand list one per line.