exec

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *exec.Cmd) (string, error)

Run does the same as RunCommand but takes a pre-populated cmd. Stdout and stderr are ignored and replaced with the output handling described for RunCommand.

func RunCommand

func RunCommand(cmd string, args ...string) (string, error)

RunCommand executes the command with logging through klog, with output processed line-by-line with the command path as prefix. It returns the combined output and, if there was a problem, includes that output and the command in the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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