diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-05-30 11:30:16 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-05 08:41:13 +0200 |
commit | 74bba6745d2bf1120d143a9898c8a7204d9d20e9 (patch) | |
tree | 22a90d0c1d5620ad56ddd8a87db3413e3793077b /lib/hooks/flag-changed.go | |
parent | 77d08620b5b2a69ee300eca66165a5c6492919d0 (diff) | |
download | aerc-74bba6745d2bf1120d143a9898c8a7204d9d20e9.tar.gz |
hooks: add AERC_FOLDER_ROLE to hooks with AERC_FOLDER
It's logical to pass this information as well, when we pass a folder
name.
Changelog-added: Added `AERC_FOLDER_ROLE` to hooks that have
`AERC_FOLDER`.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/hooks/flag-changed.go')
-rw-r--r-- | lib/hooks/flag-changed.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hooks/flag-changed.go b/lib/hooks/flag-changed.go index aaeff014..e70b67c0 100644 --- a/lib/hooks/flag-changed.go +++ b/lib/hooks/flag-changed.go @@ -9,6 +9,7 @@ import ( type FlagChanged struct { Account string Folder string + Role string FlagName string } @@ -20,6 +21,7 @@ func (m *FlagChanged) Env() []string { env := []string{ fmt.Sprintf("AERC_ACCOUNT=%s", m.Account), fmt.Sprintf("AERC_FOLDER=%s", m.Folder), + fmt.Sprintf("AERC_FOLDER_ROLE=%s", m.Role), fmt.Sprintf("AERC_FLAG=%s", m.FlagName), } |