app

package
v0.0.0-...-b60b6a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoColor

func NoColor()

func ShowCommunityInfo

func ShowCommunityInfo()

Types

type ExecutionContext

type ExecutionContext struct {
	Out *Output
	// contains filtered or unexported fields
}

func NewExecutionContext

func NewExecutionContext(cmdName string) *ExecutionContext

func (*ExecutionContext) AddCleanupHandler

func (ref *ExecutionContext) AddCleanupHandler(handler func())

func (*ExecutionContext) Exit

func (ref *ExecutionContext) Exit(exitCode int)

func (*ExecutionContext) FailOn

func (ref *ExecutionContext) FailOn(err error)

type OutVars

type OutVars map[string]interface{}

type Output

type Output struct {
	CmdName string
}

func NewOutput

func NewOutput(cmdName string) *Output

func (*Output) Error

func (ref *Output) Error(errType string, data string)

func (*Output) Info

func (ref *Output) Info(infoType string, params ...OutVars)

func (*Output) LogDump

func (ref *Output) LogDump(logType, data string, params ...OutVars)

func (*Output) Message

func (ref *Output) Message(data string)

func (*Output) Prompt

func (ref *Output) Prompt(data string)

func (*Output) State

func (ref *Output) State(state string, params ...OutVars)

Jump to

Keyboard shortcuts

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