MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / AgentCommands

Enum AgentCommands

crates/opencode-cli/src/main.rs:330–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329#[derive(Subcommand)]
330enum AgentCommands {
331 #[command(about = "List available agents")]
332 List,
333 #[command(about = "Create an agent markdown file")]
334 Create {
335 #[arg(value_name = "NAME")]
336 name: String,
337 #[arg(long)]
338 description: String,
339 #[arg(long, default_value = "all")]
340 mode: AgentFileMode,
341 #[arg(long)]
342 path: Option<PathBuf>,
343 #[arg(long)]
344 tools: Option<String>,
345 #[arg(short = 'm', long)]
346 model: Option<String>,
347 },
348}
349
350#[derive(Clone, Debug, ValueEnum)]
351enum AgentFileMode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected