command

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachLine

func EachLine(cmd *exec.Cmd, out *output.Interface, verb output.Level, fn func(line string)) error

EachLine runs a command that sends its lines of standard output to a callback

func Exec

func Exec(cmd *exec.Cmd, out *output.Interface, verb output.Level) error

Exec simulates replacing the current process with a command

func Lines

func Lines(cmd *exec.Cmd, out *output.Interface, verb output.Level) ([]string, error)

Lines runs a command and returns its lines of standard output as strings

func Run

func Run(cmd *exec.Cmd, out *output.Interface, verb output.Level) error

Run runs a command

func String

func String(cmd *exec.Cmd, out *output.Interface, verb output.Level) (string, error)

String runs a command and returns its standard output as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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