xxcommand

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultShellOpts = ShellOpts{}
)

Functions

func ExecShell

func ExecShell(cmdname string, opts ShellOpts, args ...string) ([]byte, error)

func Which

func Which(cmdname string) (string, error)

Types

type ShellOpts

type ShellOpts struct {
	CmdStdin    io.Reader
	CmdStdout   io.Writer
	NoTrimSpace bool
}

Jump to

Keyboard shortcuts

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