Versions in this module Expand all Collapse all v1 v1.5.2 Nov 21, 2020 v1.5.1 Nov 6, 2020 Changes in this version + const FlagLogFormat + const FlagLogLevel + const FlagLogTags + const FlagPort + const FlagStatsDSN + const FlagStatsPrefix + const FlagStatsTags + var CommonFlags = Flags{}.Merge(LogFlags, StatsFlags) + var LogFlags = Flags + var ServerFlags = Flags + var StatsFlags = Flags + func NewLogger(c *cli.Context) (logger.Logger, error) + func NewStats(c *cli.Context, l log.Logger) (stats.Statter, error) + func SplitTags(slice []string, sep string) ([]string, error) + func WaitForSignals() chan os.Signal + type Context struct + func NewContext(c *cli.Context) (*Context, error) + func (c *Context) AttachLogger(fn func(l log.Logger) log.Logger) + func (c *Context) AttachStatter(fn func(s stats.Statter) stats.Statter) + func (c *Context) Close() error + func (c *Context) Logger() log.Logger + func (c *Context) Statter() stats.Statter + type Flags []cli.Flag + func (f Flags) Merge(flags ...Flags) Flags Other modules containing this package github.com/hamba/cmd/v2 github.com/hamba/cmd/v3