From 9df83b738cd6731c5d7171dc0f4de6bb99871029 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Feb 2026 20:53:09 +0200 Subject: Replace all geheim path/name defaults with foostore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- internal/cli/cli.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/cli/cli.go') 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 { -- cgit v1.2.3