beamcli 0.5.0

An Interface on top of the Teleport CLI.
Documentation
use anyhow::Result;
use clap::Parser;
use colored::Colorize;

use crate::teleport::cli;

#[derive(Debug, Parser)]
pub struct Logout {}

impl Logout {
    pub fn run(&self) -> Result<()> {
        if cli::is_logged_in()? {
            cli::logout()?;
        } else {
            println!("{}", "You are not logged in with any proxy".red());
        }

        Ok(())
    }
}