Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultUsageFunc ¶
func DefaultUsageFunc(sf *SortedFlags, c *ffcli.Command) string
This is mostly copied from ffcli package
Types ¶
type SortedFlags ¶ added in v0.0.21
type SortedFlags struct {
// contains filtered or unexported fields
}
SortedFlags is needed because by default there's no way to provide order for flags
this is kind of an ugly workaround
func NewSortedFlags ¶ added in v0.0.21
func NewSortedFlags(obj interface{}, fs *flag.FlagSet) *SortedFlags
func PopulateFlagSet ¶ added in v0.0.21
func PopulateFlagSet(obj interface{}, flagSet *flag.FlagSet, skip ...string) *SortedFlags
this is mostly reflection magic
func (*SortedFlags) Len ¶ added in v0.0.21
func (sf *SortedFlags) Len() int
func (*SortedFlags) Less ¶ added in v0.0.21
func (sf *SortedFlags) Less(i, j int) bool
func (*SortedFlags) Swap ¶ added in v0.0.21
func (sf *SortedFlags) Swap(i, j int)
func (*SortedFlags) VisitAll ¶ added in v0.0.21
func (sf *SortedFlags) VisitAll(cb func(*flag.Flag))
Click to show internal directories.
Click to hide internal directories.