Description
cmd/decree/main.go sets SilenceErrors: true and SilenceUsage: true on the root cobra command, but main() only calls os.Exit(1) on error without printing it. Any error returned from a command's RunE (e.g. an invalid --file schema passed to decree docgen --file) is swallowed entirely — the CLI exits 1 with no stdout/stderr output, making failures impossible to diagnose.
Acceptance criteria
Description
cmd/decree/main.gosetsSilenceErrors: trueandSilenceUsage: trueon the root cobra command, butmain()only callsos.Exit(1)on error without printing it. Any error returned from a command'sRunE(e.g. an invalid--fileschema passed todecree docgen --file) is swallowed entirely — the CLI exits 1 with no stdout/stderr output, making failures impossible to diagnose.Acceptance criteria
main()prints the returned error (e.g. to stderr) beforeos.Exit(1)decree docgen --file <invalid-schema.yaml>) that the error message is now printedcmd/decree/cli_test.goorhelpers_test.go)go tool cover -functo confirm new code is covered per repo coverage policy