1
0
forked from sneak/secret
secret/internal/cli
clawbot 6be4601763 refactor: return errors from NewCLIInstance instead of panicking
Change NewCLIInstance() and NewCLIInstanceWithFs() to return
(*Instance, error) instead of panicking on DetermineStateDir failure.

Callers in RunE contexts propagate the error. Callers in command
construction (for shell completion) use log.Fatalf. Test callers
use t.Fatalf.

Addresses review feedback on PR #18.
2026-02-19 23:53:35 -08:00
..
cli_test.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
cli.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
completion.go Fix vault creation to require mnemonic and set up initial unlocker 2025-07-26 21:58:57 +02:00
completions.go Add cross-vault move command for secrets 2025-12-23 15:24:13 +07:00
crypto.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
generate.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
info_helper.go latest 2025-07-22 13:35:19 +02:00
info.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
init.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
integration_test.go Add cross-vault move command for secrets 2025-12-23 15:24:13 +07:00
root.go Fix vault creation to require mnemonic and set up initial unlocker 2025-07-26 21:58:57 +02:00
secrets_size_test.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
secrets.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
stdout_stderr_test.go Fix 'secret get' to output to stdout instead of stderr 2025-07-29 20:01:10 +02:00
test_helpers.go fix: resolve errcheck, gosec, and mnd linter errors 2025-07-09 06:59:01 -07:00
test_output_test.go latest from ai, it broke the tests 2025-06-20 05:40:20 -07:00
unlockers.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
vault.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
version_test.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00
version.go refactor: return errors from NewCLIInstance instead of panicking 2026-02-19 23:53:35 -08:00