chore: remove codeskyblue/go-sh

It has been replaced with alexellis/go-execute.
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-14 03:14:22 -04:00
parent 005eb2e11b
commit 4bae815f82
41 changed files with 0 additions and 135 deletions

View File

@@ -3,23 +3,8 @@ package common
import (
"path/filepath"
"strings"
"github.com/codeskyblue/go-sh"
)
// PlugnTriggerSetup sets up a plugn trigger call
//
// Deprecated: use CallPlugnTrigger with Stdin instead
func PlugnTriggerSetup(triggerName string, args ...string) *sh.Session {
shellArgs := make([]interface{}, len(args)+2)
shellArgs[0] = "trigger"
shellArgs[1] = triggerName
for i, arg := range args {
shellArgs[i+2] = arg
}
return sh.Command("plugn", shellArgs...)
}
// PlugnTriggerExists returns whether a plugin trigger exists (ignoring the existence of any within the 20_events plugin)
func PlugnTriggerExists(triggerName string) bool {
pluginPath := MustGetEnv("PLUGIN_PATH")