Documentation ¶
Index ¶
- Constants
- func NoColor()
- func ShowCommunityInfo(outputFormat string)
- type ExecutionContext
- type OutVars
- type Output
- func (ref *Output) Data(channelKey string, data interface{})
- func (ref *Output) Error(errType string, data string)
- func (ref *Output) Info(infoType string, params ...OutVars)
- func (ref *Output) LogDump(logType string, data string, params ...OutVars)
- func (ref *Output) Message(data string)
- func (ref *Output) Prompt(data string)
- func (ref *Output) State(state string, params ...OutVars)
Constants ¶
View Source
const ( DefaultArtifactsDirPath = "/opt/_mint/artifacts" ArtifactFilesDirName = "files" )
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.