diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-19 16:31:25 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-19 16:31:25 +0300 |
| commit | 5e259cafc87c96bbe6ab6c4a498099c1ffef0fac (patch) | |
| tree | 87eac0697f0f93a4d2f2f9faf62b1f08ae10f62e /internal/cli/cli.go | |
| parent | 7292a5db4e96ffeb30697ce3308d47777bf7c2f5 (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.go')
| -rw-r--r-- | internal/cli/cli.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 674d120..332d88f 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -9,6 +9,7 @@ // - cli_backend.go — backend factory (buildBackend, buildGeheimBackend, buildKeepassBackend, ...) // - cli_dispatch.go — shell loop (shellLoop) and command dispatcher (dispatch, dispatchSimple, dispatchSearch) // - cli_commands.go — concrete command handlers (cmdAdd, cmdImport, …) and action-function factories +// - cli_fish.go — fish subcommand: generates fish shell integration script (completions + ge wrapper) // - cli_paths.go — shared path utilities (readPasswordFile, resolveHomeDir, expandHome) // - migrate_kdbx.go — thin CLI handler for migrate-kdbx; delegates logic to internal/migrate package cli @@ -33,7 +34,7 @@ import ( var CommandList = []string{ "ls", "search", "cat", "paste", "get", "add", "export", "pathexport", "open", "edit", "import", "import_r", "rm", "sync", "status", "commit", - "reset", "fullcommit", "shred", "migrate-kdbx", "version", "commands", "help", "shell", + "reset", "fullcommit", "shred", "migrate-kdbx", "fish", "version", "commands", "help", "shell", "exit", "last", } @@ -215,6 +216,7 @@ rm SEARCHTERM sync|status|commit|reset|fullcommit shred migrate-kdbx [--db PATH] [--pass-file PATH] [--binary-out PATH] [--dry-run] +fish version commands help |
