cli

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(executor CommandExecutor, cmd Command) error

Types

type Command

type Command interface {
	RawCommand() string
	ProcessResults(string, int) error
}

type CommandExecutor

type CommandExecutor interface {
	ExecuteCommand(string) (stdout string, stderr string, err error)
	CheckErrorForExitCode(err error) (int, bool)
}

type UnexpectedResultError

type UnexpectedResultError struct {
	StdOut          string
	StdErr          string
	ExitCode        *int
	UnderlyingError error
}

func (*UnexpectedResultError) Error

func (u *UnexpectedResultError) Error() string

Jump to

Keyboard shortcuts

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