command

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeCommandsStringArray

func MergeCommandsStringArray(strs ...[]string) []string

Types

type Command

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

func GenerateCommand

func GenerateCommand(str string) *Command

func GenerateCommands

func GenerateCommands(strs []string) []*Command

func (*Command) Execute

func (that *Command) Execute() *Result

func (*Command) GetString

func (that *Command) GetString() string

type Result

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

func ExecuteMultiCommands

func ExecuteMultiCommands(commands []*Command) []*Result

func GenerateErrorResult

func GenerateErrorResult(err error) *Result

func (*Result) GetErr

func (that *Result) GetErr() error

func (*Result) GetErrorAsString

func (that *Result) GetErrorAsString() string

func (*Result) GetOutputAsString

func (that *Result) GetOutputAsString() string

Jump to

Keyboard shortcuts

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