Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2019 Changes in this version + var ErrorInvalidArgs = fmt.Errorf("invalid args. try -h for syntax") + func AddFormatter(t reflect.Type, f Formatter) + func MarshalJSON(v interface{}) string + type App struct + func NewApp() *App + func (r *App) Register(parentCmd string, command cli.Command, fn HandlerFn) + func (r *App) Run(args []string) error + type Column struct + Getter func(interface{}) interface{} + Name string + Path string + type CustomFormatter func(v interface{}, fo FormatOptions) Output + type FormatOptions struct + NoHeader bool + Type FormatType + type FormatType int + const FormatTypeDefault + const FormatTypeFullJSON + const FormatTypeList + const FormatTypeShort + const FormatTypeTabular + func (t *FormatType) Scan(str string) + type Formatter struct + Columns []Column + CustomFn CustomFormatter + SubItems []SubItem + type HandlerFn func(ctx context.Context, o *Options) error + type Logger interface + Errorf func(format string, args ...interface{}) + Infof func(format string, args ...interface{}) + Warningf func(format string, args ...interface{}) + func NewLogger() Logger + type Options struct + APIKey string + APISecret string + Args []string + CreatedBy string + FO *FormatOptions + Host string + Log Logger + Password string + PrintDebug bool + Username string + func (o *Options) Client() *kbclient.KillBill + func (o *Options) DevClient() *debug.Client + func (o *Options) Format(v interface{}, f Formatter) []string + func (o *Options) Output(format string, args ...interface{}) + func (o *Options) OutputWithFormatter(v interface{}, f Formatter) + func (o *Options) Outputln(format string, args ...interface{}) + func (o *Options) Print(v interface{}) + type Output struct + Columns []string + Rows []OutputRow + Title string + func NewOutput(f Formatter) Output + func (out *Output) Merge(no Output) + type OutputRow struct + Children []Output + Values []string + type SubItem struct + FieldName string + Formatter *Formatter + Name string Other modules containing this package github.com/CDNA-Technologies/kbcli/v3