cli

package
v0.0.0-...-921daf7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(c *check.C, cmds ...string) string

ExecCommand executes a shell command and returns a string with the output of the command. In case of error, it will fail the test.

func ExecCommandErr

func ExecCommandErr(cmds ...string) (output string, err error)

ExecCommandErr executes a shell command and returns a string with the output of the command and eventually the obtained error

func ExecCommandToFile

func ExecCommandToFile(c *check.C, filename string, cmds ...string)

ExecCommandToFile executes a shell command and saves the output of the command to a file. In case of error, it will fail the test.

func ExecCommandWrapper

func ExecCommandWrapper(cmd *exec.Cmd) (output string, err error)

ExecCommandWrapper decorates the execution of the given command

Types

This section is empty.

Jump to

Keyboard shortcuts

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