Documentation ¶
Index ¶
- type Message
- type Output
- func (o *Output) AddDebugMessage(description string, value interface{})
- func (o *Output) AddDeferredListMessageRead(description string, value []interface{})
- func (o *Output) AddDeferredMapMessageRead(description string, value map[string]interface{})
- func (o *Output) AddDeferredMessageRead(description string, value interface{})
- func (o *Output) AddErrorMessage(description string, value interface{}, exit bool)
- func (o *Output) AddInfoMessage(value string)
- func (o *Output) AddTableHeaders(headers ...interface{})
- func (o *Output) AddTableRows(rows ...interface{})
- func (o *Output) AddUserInputMessage(value string)
- func (o *Output) AddWarningMessage(value string)
- func (o *Output) Close()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { // OutputType OutputType JsonOutput bool CsvOutput bool HtmlOutput bool MarkDownOutput bool DebugOut bool Messages []*Message TableHeaders []interface{} TableRows [][]interface{} }
Store OutputType for reference when posting messages
func (*Output) AddDebugMessage ¶
Debug message to user
func (*Output) AddDeferredListMessageRead ¶
Adds a message that will not print until Close() is called, to print and align List of primitive Values (string, int, bool)
func (*Output) AddDeferredMapMessageRead ¶
Adds a message that will not print until Close() is called, to print and align Map Value, string -> primitive (string, int, bool)
func (*Output) AddDeferredMessageRead ¶
Adds a message that will not print until Close() is called, to print and align Single primitive Value (string, int, bool)
func (*Output) AddErrorMessage ¶
Error message to user
func (*Output) AddTableHeaders ¶
func (o *Output) AddTableHeaders(headers ...interface{})
Add headers for table, used for a list of items
func (*Output) AddTableRows ¶
func (o *Output) AddTableRows(rows ...interface{})
Add rows for at table, will be matched to headers set in AddTableHeaders, used for a list of items
func (*Output) AddUserInputMessage ¶
User Prompt Message to user
func (*Output) AddWarningMessage ¶
Warning Message to user