ghtool 0.9.2

A command-line tool for interacting with Github API with some specialized features oriented around Checks
1
2
3
4
5
6
7
8
9
10
use crate::{term::bold, token_store};
use eyre::Result;

pub fn logout() -> Result<()> {
    // Assume hostname github.com for now
    let hostname = "github.com";
    token_store::delete_token(hostname)?;
    println!("Logged out of {} account", bold(hostname));
    Ok(())
}