aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/logout.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conrad.ludgate@truelayer.com>2022-04-22 21:14:23 +0100
committerGitHub <noreply@github.com>2022-04-22 20:14:23 +0000
commit7436e4ff651b64d4019a59d04c30c414ae220403 (patch)
tree3d5e35df1bce075ae04be63d76f9edc8cc17c6cb /src/command/client/logout.rs
parentHistory filter (#329) (diff)
downloadatuin-7436e4ff651b64d4019a59d04c30c414ae220403.zip
feature-flags (#328)
* use feature flags * fmt * fix features * update ci * fmt Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to 'src/command/client/logout.rs')
-rw-r--r--src/command/client/logout.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/command/client/logout.rs b/src/command/client/logout.rs
deleted file mode 100644
index a7e9541d..00000000
--- a/src/command/client/logout.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-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(())
-}