From dcd77749dd1fdf6b0c8183bfbdf4f97bf238ebe4 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 20 Mar 2023 09:26:54 +0000 Subject: Add history deletion (#791) * Drop events. I'd still like to do them, but differently * Start adding delete api stuff * Set mailmap * Delete delete delete * Fix tests * Make clippy happy --- atuin-client/src/history.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'atuin-client/src/history.rs') diff --git a/atuin-client/src/history.rs b/atuin-client/src/history.rs index 9a26c95d..f3778612 100644 --- a/atuin-client/src/history.rs +++ b/atuin-client/src/history.rs @@ -16,9 +16,11 @@ pub struct History { pub cwd: String, pub session: String, pub hostname: String, + pub deleted_at: Option>, } impl History { + #[allow(clippy::too_many_arguments)] pub fn new( timestamp: chrono::DateTime, command: String, @@ -27,6 +29,7 @@ impl History { duration: i64, session: Option, hostname: Option, + deleted_at: Option>, ) -> Self { let session = session .or_else(|| env::var("ATUIN_SESSION").ok()) @@ -43,6 +46,7 @@ impl History { duration, session, hostname, + deleted_at, } } -- cgit v1.3.1