mobilecmd

package
v0.0.0-...-7a729f8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackagePath

func GetPackagePath(packageName string) (string, error)

获取包名称

Types

type Command

type Command struct {
	Args       []string
	Timeout    time.Duration
	Shell      bool
	ShellQuote bool
	Stdout     io.Writer
	Stderr     io.Writer
}

Command add timeout support for os/exec

func NewCommand

func NewCommand(args ...string) *Command

func (Command) CombinedOutput

func (c Command) CombinedOutput() (output string, err customerror.CustomError)

func (Command) CombinedOutputString

func (c Command) CombinedOutputString() (output string, err error)

func (Command) Output

func (c Command) Output() (output []byte, err error)

func (Command) Run

func (c Command) Run() error

func (Command) StartBackground

func (c Command) StartBackground() (pid int, err error)

Jump to

Keyboard shortcuts

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