cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConvertCommand

func NewConvertCommand(opts *rootOptions) *cobra.Command

func NewPrefixCommand

func NewPrefixCommand(opts *rootOptions) *cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type OptionData

type OptionData[T int | string | []string] struct {
	// contains filtered or unexported fields
}

func CreateIntOptionData

func CreateIntOptionData(
	fs *pflag.FlagSet,
	defaultValue int,
	name,
	usage string,
) *OptionData[int]

func CreateIntPersistentOptionData

func CreateIntPersistentOptionData(
	fs *pflag.FlagSet,
	defaultValue int,
	name,
	shorthand,
	usage string,
) *OptionData[int]

func CreateStringArrayOptionData

func CreateStringArrayOptionData(
	fs *pflag.FlagSet,
	defaultValue []string,
	name,
	usage string,
) *OptionData[[]string]

func CreateStringArrayPersistentOptionData

func CreateStringArrayPersistentOptionData(
	fs *pflag.FlagSet,
	defaultValue []string,
	name,
	shorthand,
	usage string,
) *OptionData[[]string]

func CreateStringOptionData

func CreateStringOptionData(
	fs *pflag.FlagSet,
	defaultValue string,
	name,
	usage string,
) *OptionData[string]

func CreateStringPersistentOptionData

func CreateStringPersistentOptionData(
	fs *pflag.FlagSet,
	defaultValue string,
	name,
	shorthand,
	usage string,
) *OptionData[string]

func (*OptionData[T]) IsSet

func (o *OptionData[T]) IsSet() bool

func (*OptionData[T]) Value

func (o *OptionData[T]) Value() T

type RootDevcontainerOptionsState

type RootDevcontainerOptionsState uint8
const (
	DATA_IS_NOT_PARSED RootDevcontainerOptionsState = iota
	DATA_IS_SET
	DATA_IS_NOT_SET
)

Jump to

Keyboard shortcuts

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