Documentation
¶
Index ¶
- func Ask(question string) string
- func AskForEncryptionKey() string
- func AskYesNo(question string) bool
- func Log() zerolog.Logger
- func PrintError(err error)
- func PrintErrorAndExit(err error)
- func PrintInfo(message string)
- func PrintNotice(message string)
- func PrintQuestion(question string)
- func PrintSuccess(message string)
- func PrintTableNoHeader(data [][]string)
- func PrintTableWithHeader(data [][]string)
- func PrintWarning(message string)
- type OutputFormat
- type StdErrWriter
- type StdInReader
- type StdOutWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForEncryptionKey ¶ added in v0.0.2
func AskForEncryptionKey() string
func PrintError ¶
func PrintError(err error)
func PrintErrorAndExit ¶
func PrintErrorAndExit(err error)
func PrintNotice ¶
func PrintNotice(message string)
func PrintQuestion ¶
func PrintQuestion(question string)
func PrintSuccess ¶
func PrintSuccess(message string)
func PrintTableNoHeader ¶ added in v0.0.2
func PrintTableNoHeader(data [][]string)
func PrintTableWithHeader ¶ added in v0.0.2
func PrintTableWithHeader(data [][]string)
func PrintWarning ¶
func PrintWarning(message string)
Types ¶
type OutputFormat ¶ added in v0.0.2
type OutputFormat string
const ( OutputFormatJSON OutputFormat = "json" OutputFormatPrettyJSON OutputFormat = "jsonp" OutputFormatYAML OutputFormat = "yaml" OutputFormatDefault OutputFormat = "default" )
type StdErrWriter ¶ added in v0.0.2
type StdErrWriter struct {
LogAsDebug bool
}
type StdInReader ¶ added in v0.0.2
type StdInReader struct{}
type StdOutWriter ¶ added in v0.0.2
type StdOutWriter struct {
LogAsDebug bool
}
Click to show internal directories.
Click to hide internal directories.