exec

package
Version: v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MPL-2.0 Imports: 12 Imported by: 2

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