Documentation
¶
Index ¶
- Variables
- func BuildEnumStringFlag[V fmt.Stringer](allValues []V, defaultValue V, name string) (inst *cli.StringFlag, parseFunc func(context *cli.Context) (validValue V))
- func BuildEnumStringFlagStr[V ~string](allValues []V, defaultValue V, name string) (inst *cli.StringFlag, parseFunc func(context *cli.Context) (validValue V))
- func CommandsNilRemoved(s ...*cli.Command) []*cli.Command
- func FlagsNilRemoved(s ...[]cli.Flag) (r []cli.Flag)
- type UniversalCliFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var PackageProps = packageprops.Props{ WASMWASI: packageprops.WASMBlocked, WASMJS: packageprops.WASMBlocked, WASMFreestanding: packageprops.WASMBlocked, }
PackageProps records this package's curated properties (ADR-0080). Seeded by `boxer code analysis golang wasmsurvey props generate`; curate by hand. The same group's `props verify` reconciles it.
Functions ¶
func BuildEnumStringFlag ¶
func BuildEnumStringFlagStr ¶
Types ¶
type UniversalCliFormatter ¶
type UniversalCliFormatter struct {
// contains filtered or unexported fields
}
func NewUniversalCliFormatter ¶
func NewUniversalCliFormatter(nametransf config.NameTransformFunc) (inst *UniversalCliFormatter, err error)
func (*UniversalCliFormatter) FormatValue ¶
func (inst *UniversalCliFormatter) FormatValue(context *cli.Context, v any) (err error)
func (*UniversalCliFormatter) ToCliFlags ¶
func (inst *UniversalCliFormatter) ToCliFlags() []cli.Flag
Click to show internal directories.
Click to hide internal directories.