cli

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 59 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 wires config, scan, engine, and report behind the formwork command surface and owns the exit-code contract (spec §6).

fileset.go — the --staged/--range accounting: which of the paths git named the walk could produce, and what became of the rest — a declared prune channel hid it (#151 row 9), or it never arrived at all (#158). Split from cli.go, which the 750-line vendor cap bounds; same package.

shard.go — `check --shard K/N`: run one of N disjoint shards of the selected rules, so one whole-corpus sweep can be spread over N machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int

Run executes the CLI and returns the process exit code: 0 pass, 1 error-severity findings, 2 usage/config/engine error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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