Documentation
¶
Overview ¶
Package cli implements the gruff-go command-line interface. This file owns analyse flag registration and validation.
Package cli implements the gruff-go command-line interface. ANSI helpers keep colour policy separate from command parsing and rendering.
Package cli implements the gruff-go command-line interface. The baseline command writes a baseline JSON file from a clean scan; the same helper is reused by `analyse --generate-baseline` so both entry points produce identical snapshots.
Package cli check-ignore command: report whether gruff would exclude given paths, and why, using the same config resolution and ignore engine as analyse. It performs no analysis - it answers the path-scope question a coding-agent hook asks before deciding whether to act on a file.
Package cli implements the gruff-go command-line interface. It wires flags and dispatches user commands to the analysis pipeline. Output adapters turn internal results into terminal and automation responses.
CLI support helpers: registry configuration, output-format and flag validation, and display-filter parsing - split out of cli.go to keep that file focused on command dispatch.
Package cli implements the gruff-go command-line interface. The completion command emits small static scripts for the supported shells.
Package cli implements the gruff-go command-line interface. The dashboard command converts CLI flags into the browser scan defaults served over HTTP.
Package cli implements the gruff-go command-line interface. This file holds the analyse `--diff` / `--since` argument normalisation and the stdin-patch reader shared by the changed-region flags.
Package cli implements the gruff-go command-line interface. This file accepts flags on either side of positional arguments while preserving standard end-of-flags behavior. Every command uses this path so a trailing flag cannot become a scan path.
Package cli implements the gruff-go command-line interface. Help text lives here so command usage, examples, and flag descriptions stay consistent across entrypoints.
Package cli implements the coding-agent hook command and JSON contract. This file resolves hook flags, runs analysis, applies optional change/base context, and returns findings the user's current edit should address.
Package cli prepares prior findings for agent-hook new-only filtering. This file resolves baseline or git history into the shared one-to-one matcher so hook users see the same duplicate and line-shift behavior as analyse.
Package cli filters analyzer findings into the agent-hook JSON contract. This file applies shared baseline classification and changed-region scope so users see only unreviewed findings attributable to the current edit.
Package cli builds the JSON payload consumed by coding-agent hooks. This file keeps findings, changed-scope counts, ignored paths, and config status in one stable user-facing gruff.hook.v1 response.
Package cli implements the gruff-go command-line interface. init writes a default .gruff-go.yaml in the working directory, mirroring the registry's per-rule enablement, severity, and threshold defaults so adopters have an editable starting point instead of an undocumented opaque baseline.
Package cli implements the gruff-go command-line interface. prompt.go owns the bootstrap that asks adopters to generate a .gruff-go.yaml when one is missing, plus the stdin TTY probe used to skip the prompt under non-interactive shells like CI runners and pipelines.
Package cli implements the gruff-go command-line interface. The report command runs analysis once and routes the result through the selected report writer.
Package cli implements the gruff-go command-line interface. The summary command keeps scan timing near the analysis call so digests can show real wall time.
Package cli implements the gruff-go command-line interface. Terminal detection is shared by first-run prompts and automatic ANSI output. Platform probes reject non-interactive character devices so redirected commands never wait for terminal input.
Linux terminal detection uses TCGETS because file mode cannot distinguish terminals from other character devices. Prompts and automatic colour stay disabled whenever the kernel rejects the terminal-settings request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.