summaryrefslogtreecommitdiff
path: root/internal/cli/cli_dispatch.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-19 16:31:25 +0300
committerPaul Buetow <paul@buetow.org>2026-04-19 16:31:25 +0300
commit5e259cafc87c96bbe6ab6c4a498099c1ffef0fac (patch)
tree87eac0697f0f93a4d2f2f9faf62b1f08ae10f62e /internal/cli/cli_dispatch.go
parent7292a5db4e96ffeb30697ce3308d47777bf7c2f5 (diff)
feat: replace fish integration files with built-in fish subcommand (task u6)
Add `foostore fish` subcommand that prints the complete fish shell integration script (tab completions for foostore + the ge wrapper function) to stdout so users can source it with `foostore fish | source`. Remove install-fish.sh, FISH_INTEGRATION.md, and completions/ directory. Update CLAUDE.md and README.md to document the new workflow. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/cli_dispatch.go')
-rw-r--r--internal/cli/cli_dispatch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/cli/cli_dispatch.go b/internal/cli/cli_dispatch.go
index ef23cd5..d7f73f3 100644
--- a/internal/cli/cli_dispatch.go
+++ b/internal/cli/cli_dispatch.go
@@ -191,6 +191,10 @@ func (c *CLI) dispatchSimple(ctx context.Context, argv []string, cmd string) (in
fmt.Println(name)
}
return 0, "", true
+ case "fish":
+ // Print the fish shell integration script to stdout so users can source it:
+ // foostore fish | source
+ return c.cmdFish(os.Stdout), "", true
case "help":
printHelp()
return 0, "", true