Documentation
¶
Overview ¶
Package main is the turnstile CLI entry point: it serves as a Claude Code PreToolUse hook by default, with `add`, `remove`, `upgrade`, `install`, `uninstall`, and `version` subcommands.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
config
Package config loads and compiles turnstile policy rules from a TOML file.
|
Package config loads and compiles turnstile policy rules from a TOML file. |
|
gate
Package gate evaluates tool-use requests against compiled allow/deny rules.
|
Package gate evaluates tool-use requests against compiled allow/deny rules. |
|
shell
Package shell parses Bash command strings into normalized segments for policy evaluation: subshell extraction, quote masking, heredoc handling, and pipeline splitting.
|
Package shell parses Bash command strings into normalized segments for policy evaluation: subshell extraction, quote masking, heredoc handling, and pipeline splitting. |
Click to show internal directories.
Click to hide internal directories.