Skip to main content

Module cst

Module cst 

Source

Structs§

Branch
Explanation
A per-segment breakdown of why a command would or would not auto-approve.
Pipeline
Script
SegmentReport
SimpleCmd
Stmt
Word

Enums§

Cmd
ListOp
Redir
WordPart

Functions§

command_verdict
explain
Explain against the built-in classification only.
explain_with_coverage
Explain with the user’s allowlist patterns overlaid, so a command the user has allowed isn’t reported as not-auto-approved. This mirrors the hook’s own coverage check (main.rs): a segment counts as allowed when it is built-in safe or every command in it is covered by the user’s patterns.
is_safe_command
is_safe_pipeline
parse