cli

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) error

Execute runs the root CLI command with ctx.

func ExitCode

func ExitCode(err error) int

ExitCode maps an execution error to a process exit code.

func IsAuditError

func IsAuditError(err error) bool

IsAuditError reports whether err is an AuditError.

Types

type AuditError

type AuditError struct {
	Failures []report.Failure
}

AuditError indicates that the audit report violated the configured CI policy.

func (*AuditError) Error

func (e *AuditError) Error() string

type RootOptions

type RootOptions struct {
	Project  string
	Config   string
	LogLevel string
	Output   string
}

RootOptions contains values shared by root and subcommands.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL