app

package
v0.0.0-...-9de8873 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 10 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(outputFormat string)

Types

type ExecutionContext

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

func NewExecutionContext

func NewExecutionContext(
	cmdName string,
	quiet bool,
	outputFormat string) *ExecutionContext

func (*ExecutionContext) AddCleanupHandler

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

func (*ExecutionContext) Exit

func (ref *ExecutionContext) Exit(exitCode int)

func (*ExecutionContext) Fail

func (ref *ExecutionContext) Fail(reason string)

func (*ExecutionContext) FailOn

func (ref *ExecutionContext) FailOn(err error)

type OutVars

type OutVars map[string]interface{}

type Output

type Output struct {
	CmdName      string
	Quiet        bool
	OutputFormat string
}

func NewOutput

func NewOutput(cmdName string, quiet bool, outputFormat 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