From 79f7b1d81c182bfbcc8298963886390658dda71b Mon Sep 17 00:00:00 2001 From: "J. Emiliano Deustua" Date: Tue, 13 Jun 2023 02:43:06 -0500 Subject: Fix `--delete-it-all` and `--delete` commands (#913) * Add `delete_at` is null condition during search Since entries are searched everytime a delete process ends, the --delete-it-all command will enter an infinite loop if searching the whole history. * Remove command blanking Command blanking may violate the `unique(timestamp, cwd, command)` condition. * Overwrite command with random string when deleting * Add rand dependency to client crate --------- Co-authored-by: Ellie Huxtable --- atuin-client/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'atuin-client/Cargo.toml') diff --git a/atuin-client/Cargo.toml b/atuin-client/Cargo.toml index 770d7741..42e3cf6b 100644 --- a/atuin-client/Cargo.toml +++ b/atuin-client/Cargo.toml @@ -41,6 +41,7 @@ serde_json = { workspace = true } parse_duration = "2.1.1" async-trait = { workspace = true } itertools = { workspace = true } +rand = { workspace = true } shellexpand = "2" sqlx = { workspace = true, features = ["sqlite"] } minspan = "0.1.1" -- cgit v1.3.1