cli

package
v0.3.6 Latest Latest
Warning

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

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

Documentation

Overview

Package cli implements the scout command-line interface.

Index

Constants

View Source
const (
	ExitOK         = 0
	ExitGateFailed = 1
	ExitError      = 2
)

Exit codes. Any other error exits with ExitError.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

ExitCode maps an error returned by the root command to a process exit code.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds the scout command tree.

Types

type GateError

type GateError struct {
	Count     int
	Threshold core.Severity
}

GateError means the CI gate failed: findings at or above the threshold.

func (*GateError) Error

func (e *GateError) Error() string

Jump to

Keyboard shortcuts

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