Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HelpTemplate = `
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
View Source
var UsageTemplate = `` /* 933-byte string literal not displayed */
UsageTemplate is identical to the default cobra usage template, but utilises WrappedFlagUsages to ensure flag usages don't wrap around.
Functions ¶
func SetupLogger ¶
SetupLogger creates a zap logger instance that writes to a file. Due to the CLI heavily using bubbletea to provide interactive experiences,
func WrappedFlagUsages ¶
WrappedFlagUsages wraps long descriptions for flags, this uses the users terminal size or width of 80 if cannot determine users width.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.