summaryrefslogtreecommitdiff
path: root/internal/cli/cli.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 20:53:09 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 20:53:09 +0200
commit9df83b738cd6731c5d7171dc0f4de6bb99871029 (patch)
treefeb1d82ed0b563d9125ea901b7004afd67f18e78 /internal/cli/cli.go
parent7de95e396d729895a7e1e27c1155c9d365fab41c (diff)
Replace all geheim path/name defaults with foostore
- Default data_dir: ~/git/geheimlager → ~/git/foostore-data - Default export_dir: ~/.geheimlagerexport → ~/.foostore-export - Default key_file: ~/.geheimlager.key → ~/.foostore.key - Rename env var GEHEIM_SHELL → FOOSTORE_SHELL - Update package-level comments across cli, shell, store, git, config - Update Magefile and CLAUDE.md docs to reflect new paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/cli.go')
-rw-r--r--internal/cli/cli.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go
index fb76e90..ef00010 100644
--- a/internal/cli/cli.go
+++ b/internal/cli/cli.go
@@ -1,4 +1,4 @@
-// Package cli implements the command-line interface for geheim.
+// Package cli implements the command-line interface for foostore.
// It mirrors the Ruby CLI class (geheim.rb lines 551-713): parsing argv,
// dispatching commands, and running an optional interactive readline shell.
// Run() is the top-level entry point called by cmd/foostore/main.go.
@@ -138,10 +138,10 @@ func readPIN() (string, error) {
// run dispatches a single command (when argv is non-empty and no shell flag is
// set) or enters the interactive shell loop. Returns an exit code.
func (c *CLI) run(ctx context.Context, argv []string) int {
- // Enter shell mode when: no arguments, $GEHEIM_SHELL is set, or the first
+ // Enter shell mode when: no arguments, $FOOSTORE_SHELL is set, or the first
// argument is "shell". Mirrors the Ruby shell_loop entry conditions.
enterShell := len(argv) == 0 ||
- os.Getenv("GEHEIM_SHELL") != "" ||
+ os.Getenv("FOOSTORE_SHELL") != "" ||
(len(argv) > 0 && argv[0] == "shell")
if enterShell {