]>
git.proxmox.com Git - rustc.git/blob - src/tools/cargo/src/bin/cargo/commands/logout.rs
1 use crate::command_prelude
::*;
4 pub fn cli() -> Command
{
6 .about("Remove an API token from the registry locally")
8 .arg(opt("registry", "Registry to use").value_name("REGISTRY"))
9 .after_help("Run `cargo help logout` for more detailed information.\n")
12 pub fn exec(config
: &mut Config
, args
: &ArgMatches
) -> CliResult
{
13 let registry
= args
.registry(config
)?
;
14 ops
::registry_logout(config
, registry
.as_deref())?
;