Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapOptions ¶
BootstrapOptions mirrors the parsed CLI options into bootstrap.Options. bootstrap never imports this package, so cli is the one place that translates between them.
func HandleBootstrapErr ¶
HandleBootstrapErr reports a composition-root wiring failure and returns the process exit code. A hook invocation must never block the caller's turn over a governance-loading hiccup, so it degrades to a no-op (exit 0) instead of failing like every other command.
Types ¶
type ExitError ¶
type ExitError struct {
Code int
}
ExitError signals that main must exit the process with Code instead of the generic exit-1 path taken for every other returned error. Commands that used to call os.Exit directly (runGovernance, runCommitLint on an error-severity finding) return an *ExitError instead, keeping os.Exit the sole province of main.