solutions: exit 3 is "interrupted", "not found" moves to 7

The family convention (docs/program-conventions.md) gives 3 to a
command stopped by SIGINT/SIGTERM (owner decision 2026-12-01 to unify).
A cancelled context now exits 3; yetano-solutions also stops on SIGTERM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
terminarandClaude Opus 5.5 committed 2026-12-01 13:21:10 +01:00
1 parent 4fb9bf9a5a
commit c8a219a84b
3 files changed
+34 -7

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ import (
"context"
"os"
"os/signal"
"syscall"
"yetano.dev/yetano/core"
"yetano.dev/yetano/core/paths"
@@ -19,7 +20,7 @@ import (
var version = "dev"
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
// instances, sessions and presets are user data: core/paths' data
// directory (nothing is created until something is saved)