Skip to main content

Module hints

Module hints 

Source
Expand description

Generates drill-down command hints for CLI output.

When --hints is enabled, each command’s output includes suggested next commands. All hints are concrete, executable strings — no templates or placeholders.

Structs§

CommonHintFlags
Common global flags captured once per command dispatch and threaded into every HintContext. Avoids repeating the same three field assignments in every match arm of run.rs.
Hint
A single drill-down hint: a concrete command plus a short human-readable description.
HintContext
Global flags to propagate into generated hint commands.

Enums§

HintSource
Identifies which command produced the output.

Functions§

generate_hints
Generate concrete drill-down hints from a command’s JSON output.
shell_quote
Wrap a string in single-quotes if it contains any shell-special characters.