builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandBuilder

type CommandBuilder struct {
	Command constants.Command
	Flags   []flags.Flag
	RunE    func(fg *FlagGetter) error
}

func (*CommandBuilder) Build

func (b *CommandBuilder) Build() *cobra.Command

type FlagGetter

type FlagGetter struct {
	// contains filtered or unexported fields
}

func (*FlagGetter) GetArgs

func (f *FlagGetter) GetArgs() []string

func (*FlagGetter) GetBool

func (f *FlagGetter) GetBool(flag flags.Flag) bool

func (*FlagGetter) GetInt

func (f *FlagGetter) GetInt(flag flags.Flag) int

func (*FlagGetter) GetString

func (f *FlagGetter) GetString(flag flags.Flag) string

Jump to

Keyboard shortcuts

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