A virtual jailed shell environment for Go apps backed by an io/fs#FS.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(registry): write command-not-found diagnostic to stderr

The registry's Exec returned an error wrapping ExitStatus(127) when a
command wasn't registered, but never wrote the diagnostic anywhere.
Callers like time and env that dispatch through the runner saw status
127 with no message, so users got a silent failure (and the matching
tests failed expecting "command not found" on stderr).

Assisted-by: Claude Opus 4.7 via Claude Code
Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 05404243 31da08c0

+3
+3
command/registry/registry.go
··· 103 103 104 104 cmd, ok := i.Get(cmdName) 105 105 if !ok { 106 + if hc.Stderr != nil { 107 + fmt.Fprintf(hc.Stderr, "kefka: command not found: %s\n", cmdName) 108 + } 106 109 return errors.Join(fmt.Errorf("%w: %s", ErrCommandNotFound, cmdName), interp.ExitStatus(127)) 107 110 } 108 111