From 2fef0f4a60c8026c156ad8d75078bccde6a540d8 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 15 Mar 2023 22:40:37 +0100 Subject: config: replace triggers with hooks Deprecate triggers and replace them with hooks. Now that aerc supports running arbitrary ex commands over IPC, it is possible to run internal aerc commands *and* shell commands via external shell scripts. Hooks only allow running shell commands. Hooks info is passed via environment variables. Implements: https://todo.sr.ht/~rjarry/aerc/136 Signed-off-by: Moritz Poldrack Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy --- lib/hooks/interface.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/hooks/interface.go (limited to 'lib/hooks/interface.go') diff --git a/lib/hooks/interface.go b/lib/hooks/interface.go new file mode 100644 index 00000000..ed38c3ac --- /dev/null +++ b/lib/hooks/interface.go @@ -0,0 +1,6 @@ +package hooks + +type HookType interface { + Cmd() string + Env() []string +} -- cgit