mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-18 10:53:56 +01:00
15 lines
287 B
Rust
15 lines
287 B
Rust
use crate::cli::auth::set_token;
|
|
use clap::Args;
|
|
|
|
#[derive(Debug, Args)]
|
|
pub struct LogoutCommand {}
|
|
|
|
impl LogoutCommand {
|
|
pub async fn run(self, index_url: gix::Url) -> anyhow::Result<()> {
|
|
set_token(&index_url, None).await?;
|
|
|
|
println!("logged out of {index_url}");
|
|
|
|
Ok(())
|
|
}
|
|
}
|