exec

package
v28.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package exec provides easy access to command execution for basic uses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, fullCommand []string, options ...Option) error

Exec executes a command with args, it's a shortcut func for basic command executions.

Types

type Error

type Error struct {
	Err     error
	Command string
	StdLogs string // collected logs from code generation tools.
	// contains filtered or unexported fields
}

Error provides detailed errors from the executed program.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ExitError

type ExitError = exec.ExitError

ExitError is an alias to exec.ExitError.

type Option

type Option func(*execConfig)

func IncludeStdLogsToError

func IncludeStdLogsToError() Option

func StepOption

func StepOption(o step.Option) Option

Jump to

Keyboard shortcuts

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