app

package
v0.0.0-...-f12bd69 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultArtifactsDirPath = "/opt/_mint/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,
	dataChannels ...map[string]chan interface{}) *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)

func (*ExecutionContext) WarnOn

func (ref *ExecutionContext) WarnOn(err error)

type OutVars

type OutVars map[string]interface{}

type Output

type Output struct {
	CmdName      string
	Quiet        bool
	OutputFormat string
	DataChannels map[string]chan interface{}
	// contains filtered or unexported fields
}

func NewOutput

func NewOutput(cmdName string, quiet bool, outputFormat string, channels map[string]chan interface{}) *Output

func (*Output) Data

func (ref *Output) Data(channelKey string, data interface{})

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