commit 1e86224373017d7603b236309c97660d12e87d8c
parent 2939d55749ec4f5a2708e5880406abf8387be6c2
Author: Sean Enck <sean@ttypty.com>
Date: Wed, 14 Sep 2022 19:45:18 -0400
prefix git ops after hooks
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/main.go b/cmd/main.go
@@ -119,11 +119,11 @@ func main() {
if err := encrypt.ToFile(entry, password); err != nil {
die("unable to encrypt object", err)
}
+ fmt.Println("")
+ hooks.Run(hooks.Insert, hooks.PostStep)
if err := s.GitCommit(entry); err != nil {
die("failed to git commit changed", err)
}
- fmt.Println("")
- hooks.Run(hooks.Insert, hooks.PostStep)
case "rm":
s := store.NewFileSystemStore()
entry := getEntry(s, args, 2)
@@ -134,10 +134,10 @@ func main() {
if err := os.Remove(entry); err != nil {
die("unable to remove entry", err)
}
+ hooks.Run(hooks.Remove, hooks.PostStep)
if err := s.GitRemove(entry); err != nil {
die("failed to git remove", err)
}
- hooks.Run(hooks.Remove, hooks.PostStep)
}
case "show", "clip", "dump":
fs := store.NewFileSystemStore()