Modules§
Macros§
- warn
- Print a warning message to stderr unless quiet mode is enabled.
Respects error format: emits JSON when
--error-format jsonis set.
Structs§
- Diagnostic
- Structured error with optional Why and Hint fields.
Enums§
- Collapse
Mode - Graph collapse strategy.
- Direction
- Layout direction for graph output.
- GroupBy
- Grouping strategy for graph output.
- List
Output Format - Output format for the list command.
Functions§
- format_
diagnostic - Format a
Diagnosticfor stderr output, respecting the current error format. - format_
error - Format an error for stderr output, respecting the current error format.
- format_
json_ diagnostic_ structured - Format a structured diagnostic as a JSON object for stderr.
- is_
error_ format_ json - Returns true if error output should be JSON.
- is_
quiet - Returns true if quiet mode is enabled.
- set_
error_ format_ json - Set the error output format:
truefor JSON,falsefor text (default). - set_
quiet - Enable quiet mode (suppress warnings on stderr).