From d57f549855caf8ab90b5ea0ae7cc9445f3abedfc Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Thu, 21 Apr 2022 10:12:56 +0100 Subject: refactor commands for better separation (#313) * refactor commands for better separation * fmt --- src/command/logout.rs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/command/logout.rs (limited to 'src/command/logout.rs') diff --git a/src/command/logout.rs b/src/command/logout.rs deleted file mode 100644 index 26d689cf..00000000 --- a/src/command/logout.rs +++ /dev/null @@ -1,12 +0,0 @@ -use fs_err::remove_file; - -pub fn run() { - let session_path = atuin_common::utils::data_dir().join("session"); - - if session_path.exists() { - remove_file(session_path.as_path()).expect("Failed to remove session file"); - println!("You have logged out!"); - } else { - println!("You are not logged in"); - } -} -- cgit v1.3.1