bular 0.0.2

CLI for managing Bular deployments
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::bular_json::BularJson;

#[derive(clap::Args)]
#[command(about = "Logout from Bular Cloud!")]
pub struct Command {}

impl Command {
    pub async fn run(&self, _server: String) {
        // TODO: Make a request to the backend to delete the API token.

        std::fs::remove_file(BularJson::path()).ok();
        println!("Logged out");
    }
}