Documentation ¶
Index ¶
- func CheckErr(err error, cmd ...*cobra.Command)
- func GetKubeMQClient(ctx context.Context, cfg *config.Config) (*kubemq.Client, error)
- func Print(msg string)
- func PrintAndExit(msg string)
- func Printf(format string, args ...interface{})
- func PrintfAndExit(format string, args ...interface{})
- func Println(msg string)
- func Printlnf(format string, args ...interface{})
- func PrintlnfNoTitle(format string, args ...interface{})
- func Run(ctx context.Context, cfg *config.Config, resources []string, include []string, ...) error
- func TabbedString(f func(io.Writer) error) (string, error)
- func Title(input string) string
- type Message
- type PrefixWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubeMQClient ¶
func PrintAndExit ¶
func PrintAndExit(msg string)
func PrintfAndExit ¶
func PrintfAndExit(format string, args ...interface{})
func PrintlnfNoTitle ¶
func PrintlnfNoTitle(format string, args ...interface{})
Types ¶
type PrefixWriter ¶
type PrefixWriter interface { // Write writes text with the specified indentation level. Write(level int, format string, a ...interface{}) // WriteLine writes an entire line with no indentation level. WriteLine(a ...interface{}) // Flush forces indentation to be reset. Flush() }
PrefixWriter can write text at various indentation levels.
func NewPrefixWriter ¶
func NewPrefixWriter(out io.Writer) PrefixWriter
NewPrefixWriter creates a new PrefixWriter.
Click to show internal directories.
Click to hide internal directories.