MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / RunCommandWithInput

Method RunCommandWithInput

platform/windows/powershell/runner.go:48–50  ·  view source on GitHub ↗
(input, cmdName string, args ...string)

Source from the content-addressed store, hash-verified

46}
47
48func (c *Runner) RunCommandWithInput(input, cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error) {
49 return c.BaseCmdRunner.RunCommandWithInput(input, Executable, append([]string{cmdName}, args...)...)
50}
51
52func (c *Runner) CommandExists(cmdName string) (exists bool) {
53 _, _, exitStatus, _ := c.RunCommand("Get-Command", cmdName) //nolint:errcheck

Callers 2

runner_test.goFile · 0.45
PartitionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected