command

package
v0.5.8-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(cmd string) bool

func ExistsForUser added in v0.3.0

func ExistsForUser(cmd, user string) bool

func GetHome

func GetHome(userName string) (string, error)

func IsRunning

func IsRunning(pid string) (bool, error)

func Kill

func Kill(pid string) error

func Quote

func Quote(args []string) string

func WrapCommandError added in v0.2.1

func WrapCommandError(stdout []byte, err error) error

Types

type Error added in v0.2.1

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

func (*Error) Error added in v0.2.1

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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