command

package
v0.0.0-...-4a61b4d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context,
	log logger.Logger,
	dir string, name string, arguments []string, env []string) ([]byte, error)

Execute is used to execute commands, return stdout and execute errors

Types

type ErrCommandExec

type ErrCommandExec struct {
	Err      error
	Dir      string
	Command  string
	ExitCode int
	Stdout   string
	Stderr   string
}

ErrCommandExec defines the command error

func (*ErrCommandExec) Error

func (err *ErrCommandExec) Error() string

Error implements the error interface

Jump to

Keyboard shortcuts

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