feat: add a shell function to check if a plugin trigger exists

This commit is contained in:
Jose Diaz-Gonzalez
2023-08-19 12:07:06 -04:00
parent 4a43eeaaa8
commit ffc64e7d8b
2 changed files with 20 additions and 0 deletions

View File

@@ -53,6 +53,13 @@ func main() {
appName = "--global"
}
fmt.Print(common.GetAppScheduler(appName))
case "plugn-trigger-exists":
triggerName := flag.Arg(1)
if common.PlugnTriggerExists(triggerName) {
fmt.Print("true")
} else {
fmt.Print("false")
}
case "verify-app-name":
appName := flag.Arg(1)
err = common.VerifyAppName(appName)