app

package
v0.0.0-...-5f60744 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultArtifactsDirPath = "/opt/_slim/artifacts"
	ArtifactFilesDirName    = "files"
)

Variables

This section is empty.

Functions

func NoColor

func NoColor()

func ShowCommunityInfo

func ShowCommunityInfo(consoleFormat string)

Types

type ExecutionContext

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

func NewExecutionContext

func NewExecutionContext(cmdName, jsonFlag 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
	JSONFlag string
}

func NewOutput

func NewOutput(cmdName, jsonFlag 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 string, 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