Skip to main content

vtcode_core/cli/args/
debug.rs

1use clap::Subcommand;
2
3/// Inspect and exercise the OS sandbox without starting an agent session.
4///
5/// Commands run under the sandbox configured for this workspace, so this is a
6/// way to verify that a profile blocks what it is supposed to block.
7#[derive(Subcommand, Debug, Clone)]
8pub enum DebugCommand {
9    /// Print the sandbox mechanisms available on this platform.
10    Capabilities,
11
12    /// Run a command under macOS Seatbelt (`sandbox-exec`).
13    Seatbelt {
14        /// Command and arguments to run (all following values are passed through).
15        #[arg(
16            long = "cmd",
17            value_name = "COMMAND",
18            num_args = 1..,
19            allow_hyphen_values = true,
20            required = true
21        )]
22        command: Vec<String>,
23    },
24
25    /// Run a command under Linux Landlock plus seccomp.
26    Landlock {
27        /// Command and arguments to run (all following values are passed through).
28        #[arg(
29            long = "cmd",
30            value_name = "COMMAND",
31            num_args = 1..,
32            allow_hyphen_values = true,
33            required = true
34        )]
35        command: Vec<String>,
36    },
37}