From 480524441774b745f2c2c7335441291b6aef0bbb Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 17 May 2022 18:08:27 -0400 Subject: [PATCH] feat: emit job.add hook when job is added --- job.go | 1 + 1 file changed, 1 insertion(+) diff --git a/job.go b/job.go index a566152..13dfb8e 100644 --- a/job.go +++ b/job.go @@ -165,6 +165,7 @@ func (j *jobHandler) add(cmd string, args []string, path string) *job { stderr: os.Stderr, } j.jobs[j.latestID] = jb + hooks.Em.Emit("job.add", jb.lua()) return jb }