vtcode_core/cli/args/companion.rs
1use clap::{Args, Subcommand, ValueHint};
2use std::path::PathBuf;
3
4/// Manage a user's local VT Code Companion launch context.
5#[derive(Debug, Clone, Subcommand)]
6pub enum CompanionCommand {
7 /// Select the VT Code executable and workspace used by the local plugin.
8 Setup(CompanionSetupArgs),
9}
10
11/// Machine-specific Companion setup values.
12#[derive(Debug, Clone, Args)]
13pub struct CompanionSetupArgs {
14 /// VT Code executable; defaults to the executable running this command.
15 #[arg(long, value_name = "PATH", value_hint = ValueHint::FilePath)]
16 pub binary: Option<PathBuf>,
17}