diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 17:06:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 17:06:26 +0200 |
| commit | 8b627f383e68ce2b71832d26e86f621239271ad0 (patch) | |
| tree | ff343555a378b1e093985ca5445db0a999b3f03e /README.md | |
| parent | 8480d1b1b074729ebfe43cc2fcb400910880627f (diff) | |
Update main.go and cli API for signal-cancellable context (task 352/main)
main.go: set up signal.NotifyContext(SIGINT, SIGTERM) so long-running
operations (fzf, external editors) terminate gracefully on interrupts.
Call cli.New(ctx) explicitly and pass the context to c.Run(ctx, argv),
matching the task spec and allowing the context to flow through all
store/git/crypto operations.
cli: expose New(ctx) and Run(ctx, argv) as the public API; remove the
package-level Run() helper that created its own context.Background().
Verified: mage build produces ./bin/geheim; PIN=test ./bin/geheim version
prints "> geheim v0.4.0".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
