blob: a7e9541d8e6a19b8517fa65fe34f22559d21ee6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use eyre::{Context, Result};
use fs_err::remove_file;
pub fn run() -> Result<()> {
let session_path = atuin_common::utils::data_dir().join("session");
if session_path.exists() {
remove_file(session_path.as_path()).context("Failed to remove session file")?;
println!("You have logged out!");
} else {
println!("You are not logged in");
}
Ok(())
}
|