From b636b12566ea6c2862bf3adc6686c57e0d785ca3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 2 Mar 2026 10:56:42 +0200 Subject: store: make Data carry injected deps (task 402) --- internal/cli/cli.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'internal/cli/cli.go') diff --git a/internal/cli/cli.go b/internal/cli/cli.go index b6d47fc..7b18c34 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -55,7 +55,6 @@ type CLI struct { g *git.Git clip *clipboard.Clipboard sh *shell.Shell - cipher *crypto.Cipher lastResult string // most recent search result description } @@ -101,11 +100,10 @@ func newCLI(ctx context.Context) (*CLI, error) { clip := clipboard.New(cfg.GnomeClipboardCmd, cfg.MacOSClipboardCmd) c := &CLI{ - cfg: &cfg, - st: st, - g: g, - clip: clip, - cipher: ciph, + cfg: &cfg, + st: st, + g: g, + clip: clip, } // Create the shell with a completion function that references the CLI. @@ -577,7 +575,7 @@ func (c *CLI) makeActionFn(ctx context.Context, action store.Action) func(contex if err := externalEdit(ctx, c.cfg.ExportDir, c.cfg.EditCmd, exportName); err != nil { return err } - return d.ReimportAfterExport(ctx, c.cipher, c.g) + return d.ReimportAfterExport(ctx) } default: -- cgit v1.2.3