1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use structopt::StructOpt; use crate::auth::AuthStore; /// Log out of a registry. #[derive(Debug, StructOpt)] pub struct LogoutSubcommand {} impl LogoutSubcommand { pub fn run(self) -> anyhow::Result<()> { AuthStore::set_token(None)?; Ok(()) } }