command

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd     string
	Args    []string
	Env     []string
	WorkDir string
}

func (*Command) Run

func (c *Command) Run(ctx context.Context) (*CommandResult, error)

nolint:gosec,wrapcheck

func (Command) String

func (c Command) String() string

type CommandResult

type CommandResult struct {
	*os.ProcessState

	StdOut *bytes.Buffer
	StdErr *bytes.Buffer
}

func (CommandResult) String

func (r CommandResult) String() string

Jump to

Keyboard shortcuts

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