feat: add PR diff, PR review, and structured error handling commands

This commit is contained in:
sid 2026-03-21 21:50:24 -06:00
parent 3db03ed5e2
commit 50191cc542
10 changed files with 1008 additions and 13 deletions

View file

@ -9,7 +9,11 @@ import (
func main() {
if err := cmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
if cmd.JSONErrors() {
cmd.WriteJSONError(err)
} else {
fmt.Fprintln(os.Stderr, err)
}
os.Exit(1)
}
}