subprocess

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2016 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package subprocess provides helper functions for forking new processes NOTE: Subject to change, do not rely on this package from outside git-lfs source

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(name string, arg ...string) *exec.Cmd

ExecCommand is a small platform specific wrapper around os/exec.Command

func SimpleExec

func SimpleExec(name string, args ...string) (string, error)

SimpleExec is a small wrapper around os/exec.Command.

Types

type Tty

type Tty struct {
	// contains filtered or unexported fields
}

Tty is a convenience wrapper to allow pseudo-TTYs on *nix systems, create with NewTty() Do not use any of the struct members directly, call the Stderr() and Stdout() methods Remember to call Close() when finished

func NewTty

func NewTty(cmd *exec.Cmd) *Tty

NewTty creates a pseudo-TTY for a command and modifies it appropriately so the command thinks it's a real terminal

func (*Tty) Close

func (t *Tty) Close()

func (*Tty) Stderr

func (t *Tty) Stderr() (io.ReadCloser, error)

func (*Tty) Stdout

func (t *Tty) Stdout() (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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