cli

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 BuildEnumStringFlag[V fmt.Stringer](allValues []V, defaultValue V, name string) (inst *cli.StringFlag, parseFunc func(context *cli.Context) (validValue V))

func BuildEnumStringFlagStr

func BuildEnumStringFlagStr[V ~string](allValues []V, defaultValue V, name string) (inst *cli.StringFlag, parseFunc func(context *cli.Context) (validValue V))

func CommandsNilRemoved

func CommandsNilRemoved(s ...*cli.Command) []*cli.Command

func FlagsNilRemoved

func FlagsNilRemoved(s ...[]cli.Flag) (r []cli.Flag)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL