feat: added cacerts and some tidying

This commit is contained in:
David Allen 2025-08-31 22:02:10 -06:00
parent 2112e7eefd
commit bdd85b01ff
Signed by: towk
GPG key ID: 0430CDBE22619155
8 changed files with 279 additions and 59 deletions

View file

@ -29,10 +29,18 @@ type Hook struct {
Plugin Plugin
}
func (h *Hook) Init() error {
return h.Plugin.Init()
}
func (h *Hook) Run() error {
return h.Plugin.Run(h.Data, h.Args)
}
func (h *Hook) Cleanup() error {
return h.Plugin.Cleanup()
}
func PluginToMap(p Plugin) map[string]any {
return map[string]any{
"name": p.Name(),