diff options
Diffstat (limited to 'src/command/client/sync/logout.rs')
| -rw-r--r-- | src/command/client/sync/logout.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/command/client/sync/logout.rs b/src/command/client/sync/logout.rs deleted file mode 100644 index 90b49d6d..00000000 --- a/src/command/client/sync/logout.rs +++ /dev/null @@ -1,19 +0,0 @@ -use std::path::PathBuf; - -use eyre::{Context, Result}; -use fs_err::remove_file; - -use atuin_client::settings::Settings; - -pub fn run(settings: &Settings) -> Result<()> { - let session_path = settings.session_path.as_str(); - - if PathBuf::from(session_path).exists() { - remove_file(session_path).context("Failed to remove session file")?; - println!("You have logged out!"); - } else { - println!("You are not logged in"); - } - - Ok(()) -} |
