anesis 0.9.1

CLI for scaffolding projects from remote templates and extending them with project addons
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{fs, path::Path};

use anyhow::{Result, anyhow};

pub fn logout(auth_path: &Path) -> Result<()> {
  match fs::remove_file(auth_path) {
    Ok(_) => {
      println!("Logout successful");
      Ok(())
    }
    Err(_) => Err(anyhow!("You are not logged in yet.")),
  }
}