Skip to main content

safe_chains/
cli.rs

1use clap::Parser;
2
3#[derive(Parser)]
4#[command(name = "safe-chains")]
5#[command(about = "Auto-allow safe, read-only bash commands in agentic coding tools")]
6#[command(version)]
7pub struct Cli {
8    /// Command string to check (omit for Claude hook mode via stdin)
9    pub command: Option<String>,
10
11    /// List all supported commands in Markdown format
12    #[arg(long)]
13    pub list_commands: bool,
14}