mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-27 07:53:23 +00:00
feat: emit job.add hook when job is added
This commit is contained in:
parent
2fb55526dc
commit
4805244417
1
job.go
1
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user