[common] helper for go trigger plugn events
This commit is contained in:
1 parent
e57e1408b2
commit
5e3184b61d
1 file changed
+6
@@ -144,3 +144,9 @@ func VerifyImage(image string) bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//PlugnTrigger fire the given plugn trigger with the given args
|
||||||
|
func PlugnTrigger(triggerName string, args ...string) (string, error) {
|
||||||
|
res, err := sh.Command("plugn", "trigger", triggerName, args).Output()
|
||||||
|
return string(res), err
|
||||||
|
}
|
||||||
Reference in new issue
Block a user