exec

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package exec wrap the standar package "os/exec" to simplify calling Run with stdout and stderr.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommandArgs

func ParseCommandArgs(in string) (cmd string, args []string)

ParseCommandArgs parse the input string into command and arguments. This function detect possible single, double, or back quote on arguments.

func Run

func Run(command string, stdout, stderr io.Writer) (err error)

Run the command and arguments in the string cmd. If stdout or stderr is nil, it will default to os.Stdout and/or os.Stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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