run

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package run contains utility functions for executing external commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attached

func Attached(command string, args ...string)

Attached runs the specified command with Stdin, Stdout, and Stderr attached to their default locations (usually the console)

func Capture

func Capture(command string, args ...string) (string, error)

Capture runs the specified command and returns the contents of the command's Stdout as a string. Additionally, if there is any output from the command in Stderr, an error will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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