Versions in this module Expand all Collapse all v0 v0.2.0 Dec 22, 2024 Changes in this version + func Arguments() []string + type Code = int + const Failure + const Success + const Usability + type Component struct + Components Components + Description string + Flags Flags + Function Func + Help string + Name string + func (c *Component) Arguments() []string + func (c *Component) Context() context.Context + func (c *Component) GetBool(flag string) bool + func (c *Component) GetBools(flag string) []bool + func (c *Component) GetDuration(flag string) time.Duration + func (c *Component) GetDurations(flag string) []time.Duration + func (c *Component) GetInt(flag string) int + func (c *Component) GetInts(flag string) []int + func (c *Component) GetString(flag string) string + func (c *Component) GetStrings(flag string) []string + func (c *Component) HasBool(flag string) bool + func (c *Component) HasDuration(flag string) bool + func (c *Component) HasInt(flag string) bool + func (c *Component) HasString(flag string) bool + func (c *Component) Leaf() bool + func (c *Component) Nargs() int + type Components []*Component + func (cs Components) Contains(name string) bool + func (cs Components) Get(name string) *Component + type Configuration struct + Arguments []string + Context context.Context + Globals Flags + Output io.Writer + Top *Component + Version string + type Default struct + Show bool + Value any + type Flag struct + Default *Default + Help string + Long string + Repeats bool + Require bool + Short string + Type FlagType + func (f *Flag) Identity() string + func (f *Flag) Is(name string) bool + type FlagType uint8 + const BooleanFlag + const DurationFlag + const IntFlag + const StringFlag + func (t FlagType) String() string + type Flags []*Flag + func (fs Flags) Contains(name string) bool + func (fs Flags) Get(name string) *Flag + type Func func(*Component) Code + type Runnable struct + func New(c *Configuration) *Runnable + func (r *Runnable) Run() (c Code)