From 6c6acc54731001e451f87c34df1013be4feef5de Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 18 Sep 2022 09:14:34 -0700 Subject: [PATCH] Fix another actions only bug + add todo --- hishtory.go | 4 ++++ shared/testutils.go | 1 + 2 files changed, 5 insertions(+) diff --git a/hishtory.go b/hishtory.go index 7d59ba6..032bd04 100644 --- a/hishtory.go +++ b/hishtory.go @@ -30,6 +30,10 @@ func main() { query(strings.Join(os.Args[2:], " ")) case "export": export(strings.Join(os.Args[2:], " ")) + case "redact": + fallthrough + case "delete": + panic("TODO: not yet implemented") case "init": lib.CheckFatalError(lib.Setup(os.Args)) case "install": diff --git a/shared/testutils.go b/shared/testutils.go index 97de969..592d5ce 100644 --- a/shared/testutils.go +++ b/shared/testutils.go @@ -64,6 +64,7 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() { path.Join(homedir, ".bashrc"), } for _, file := range copyFiles { + touchFile(file) _ = copy(file, file+id+".bak") } configureZshrc(homedir)