run

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCommand

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

LogCommand runs the specified command but records standard output with log.Info and standard error with log.Warning.

func LogCommandWithInput

func LogCommandWithInput(in []byte, cmd string, args ...string) error

LogCommandWithInput runs the specified command but records standard output with log.Info and standard error with log.Warning. in is sent to the standard input of the command.

func OutCommand

func OutCommand(cmd string, args ...string) ([]byte, error)

OutCommand runs the specified command and returns any standard output as well as any errors.

func OutLogCommand

func OutLogCommand(cmd string, args ...string) ([]byte, error)

OutLogCommand runs the specified command but records standard output with log.Info and standard error with log.Warning. Standard output and standard error are also returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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