mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
19 lines
405 B
Rust
19 lines
405 B
Rust
use anyhow::Result;
|
|
use clap::Parser;
|
|
use codex_execpolicy::execpolicycheck::ExecPolicyCheckCommand;
|
|
|
|
/// CLI for evaluating exec policies
|
|
#[derive(Parser)]
|
|
#[command(name = "codex-execpolicy")]
|
|
enum Cli {
|
|
/// Evaluate a command against a policy.
|
|
Check(ExecPolicyCheckCommand),
|
|
}
|
|
|
|
fn main() -> Result<()> {
|
|
let cli = Cli::parse();
|
|
match cli {
|
|
Cli::Check(cmd) => cmd.run(),
|
|
}
|
|
}
|