Documentation ¶
Index ¶
- Variables
- func Check(err error, msg ...string)
- func DefaultJSONFormatter(i interface{}) ([]byte, error)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func GetCLIOutputText(outputModel CLIOutput) (string, error)
- func HiveLogger() *logger.Logger
- func Init(rootCmd *cobra.Command)
- func ParseCLIOutputTemplate(output CLIOutput, templateDefinition string) (string, error)
- func PrintCLIOutput(output CLIOutput)
- func PrintTable(header []string, rows [][]string)
- func PrintTree(node interface{}, tab, tabwidth int)
- func Printf(format string, args ...interface{})
- func Verbosef(format string, args ...interface{})
- type CLIOutput
- type ErrorModel
- type ExtendedCLIOutput
- type TreeItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VerboseFlag bool DebugFlag bool JSONFlag bool )
Functions ¶
func DefaultJSONFormatter ¶
func GetCLIOutputText ¶
func HiveLogger ¶
func ParseCLIOutputTemplate ¶
func PrintCLIOutput ¶
func PrintCLIOutput(output CLIOutput)
func PrintTable ¶
Types ¶
type ErrorModel ¶
type ErrorModel struct {
Error string
}
func (*ErrorModel) AsText ¶
func (b *ErrorModel) AsText() (string, error)
type ExtendedCLIOutput ¶
Click to show internal directories.
Click to hide internal directories.