powershell

package
v2.196.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Executable = "powershell.exe"

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	BaseCmdRunner system.CmdRunner
}

func (*Runner) CommandExists

func (c *Runner) CommandExists(cmdName string) (exists bool)

func (*Runner) RunCommand

func (c *Runner) RunCommand(cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*Runner) RunCommandQuietly

func (c *Runner) RunCommandQuietly(cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*Runner) RunCommandWithInput

func (c *Runner) RunCommandWithInput(input, cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*Runner) RunComplexCommand

func (c *Runner) RunComplexCommand(cmd system.Command) (stdout, stderr string, exitStatus int, err error)

func (*Runner) RunComplexCommandAsync

func (c *Runner) RunComplexCommandAsync(cmd system.Command) (system.Process, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL