MCPcopy Index your code
hub / github.com/semaphoreui/semaphore / Run

Method Run

db_lib/ShellApp.go:111–127  ·  view source on GitHub ↗
(args LocalAppRunningArgs)

Source from the content-addressed store, hash-verified

109}
110
111func (t *ShellApp) Run(args LocalAppRunningArgs) error {
112 // Use "default" key for backward compatibility
113 cliArgs := args.CliArgs["default"]
114 cmd := t.makeShellCmd(cliArgs, args.EnvironmentVars)
115 t.Logger.LogCmd(cmd)
116 //cmd.Stdin = &t.reader
117 cmd.Stdin = strings.NewReader("")
118 err := cmd.Start()
119 if err != nil {
120 return err
121 }
122 args.Callback(cmd.Process)
123 err = cmd.Wait()
124 // Wait for all log processing to complete before returning
125 t.Logger.WaitLog()
126 return err
127}

Callers

nothing calls this directly

Calls 4

makeShellCmdMethod · 0.95
LogCmdMethod · 0.65
StartMethod · 0.65
WaitLogMethod · 0.65

Tested by

no test coverage detected