exec

package
v3.6.1-0...-b39d338 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand(command string) *exec.Cmd

func ExecWithEnv

func ExecWithEnv(opts ExecOpts) error

func ExecWithFile

func ExecWithFile(opts ExecOpts) error

func GetFile

func GetFile(dir, filename string) *os.File

func GetPipe

func GetPipe(dir, filename string) string

func SwitchUser

func SwitchUser(username string)

func WritePipe

func WritePipe(pipe string, contents []byte)

Types

type ExecOpts

type ExecOpts struct {
	Command    string
	Plaintext  []byte
	Background bool
	Fifo       bool
	User       string
	Filename   string
}

Jump to

Keyboard shortcuts

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