cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli parses command arguments and presents the shared audit API. The executable injects the facade functions to preserve the internal package import direction; this package contains no alternate audit implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, stdout, stderr io.Writer, api API) int

Run executes one audit command, writing evidence to stdout and diagnostics to stderr, and returns the shared 0/1/2 exit status. It never exits the process.

Types

type API

type API struct {
	LoadManifest  func(io.Reader) (contracts.Manifest, error)
	Audit         func(context.Context, contracts.Manifest, contracts.Options) (contracts.Report, error)
	WriteJSON     func(io.Writer, contracts.Report) error
	WriteMarkdown func(io.Writer, contracts.Report) error
}

API supplies the same public operations used by library callers.

Jump to

Keyboard shortcuts

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