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

Enum AuthCommands

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

Source from the content-addressed store, hash-verified

307
308#[derive(Subcommand)]
309enum AuthCommands {
310 #[command(
311 about = "List supported auth providers and current environment status",
312 alias = "ls"
313 )]
314 List,
315 #[command(about = "Set credential for current process (non-persistent)")]
316 Login {
317 #[arg(value_name = "PROVIDER_OR_URL")]
318 provider: Option<String>,
319 #[arg(long)]
320 token: Option<String>,
321 },
322 #[command(about = "Clear credential from current process")]
323 Logout {
324 #[arg(value_name = "PROVIDER")]
325 provider: Option<String>,
326 },
327}
328
329#[derive(Subcommand)]
330enum AgentCommands {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected