Versions in this module Expand all Collapse all v0 v0.0.1 Nov 16, 2020 Changes in this version + const DebugLevel + const Disabled + const ErrorLevel + const FatalLevel + const InfoLevel + const NoLevel + const PanicLevel + const TraceLevel + const WarnLevel + func ApplicationStartFailed(l zerolog.Logger, err error) + func ApplicationStarted(l zerolog.Logger) + func ApplicationSuccefulStopped(l zerolog.Logger) + func CombineStructs(structs ...interface{}) (interface{}, error) + func CopyStruct(src, dest interface{}) error + func JSON(r io.Reader) (kong.Resolver, error) + func Run(cli interface{}, ctx context.Context, options ...Option) + type Cli struct + Config kong.ConfigFlag + LoggingFormat LoggingFormat + LoggingLevel LoggingLevel + LoggingOutput LoggingOutput + Version kong.VersionFlag + type ConsoleWriter struct + func NewConsoleWriter() *ConsoleWriter + func (c *ConsoleWriter) Format(f Format) *ConsoleWriter + func (c *ConsoleWriter) Out(w io.Writer) *ConsoleWriter + func (c *ConsoleWriter) Write(p []byte) (n int, err error) + type Format int + const ColoredTextFormat + const JSONFormat + const TextFormat + type LoggingFormat string + func (l LoggingFormat) AfterApply(ctx *context.Context, writer *ConsoleWriter) error + type LoggingLevel string + func (l LoggingLevel) BeforeApply(ctx *context.Context) error + type LoggingOutput string + func (l LoggingOutput) AfterApply(ctx *context.Context, writer *ConsoleWriter) (err error) + type Option func() kong.Option + func Env(prefix string) Option + func Name(name string) Option + func Paths(paths ...string) Option + func Version(version string) Option