feat: emit job.add hook when job is added

extended-job-api
TorchedSammy 2022-05-17 18:08:27 -04:00
parent 2fb55526dc
commit 4805244417
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

1
job.go
View File

@ -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
}