Documentation
¶
Index ¶
- func CollectRequestValues(rs []RequestValue) []any
- func CommandRequestValue[T any | string | int64 | float64 | bool](cmd *cli.Command, name string) T
- func CommandRequestValues[T any | string | int64 | float64 | bool](cmd *cli.Command, name string) []T
- func Value[T any | string | int64 | float64 | bool](val T) requestValue[T]
- type BoolFlag
- type BoolSlice
- type BoolSliceFlag
- type DateFlag
- type DateSlice
- type DateSliceFlag
- type DateTimeFlag
- type DateTimeSlice
- type DateTimeSliceFlag
- type FloatFlag
- type FloatSlice
- type FloatSliceFlag
- type IntFlag
- type IntSlice
- type IntSliceFlag
- type RequestConfig
- type RequestValue
- type StringFlag
- type StringSlice
- type StringSliceFlag
- type TimeFlag
- type TimeSlice
- type TimeSliceFlag
- type YAMLFlag
- type YAMLSlice
- type YAMLSliceFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectRequestValues ¶
func CollectRequestValues(rs []RequestValue) []any
func CommandRequestValue ¶
func CommandRequestValues ¶
Types ¶
type BoolFlag ¶
type BoolFlag = cli.FlagBase[requestValue[bool], RequestConfig, requestValueCreator[bool]]
type BoolSlice ¶
type BoolSlice = cli.SliceBase[requestValue[bool], RequestConfig, requestValueCreator[bool]]
type BoolSliceFlag ¶
type BoolSliceFlag = cli.FlagBase[[]requestValue[bool], RequestConfig, BoolSlice]
type DateSliceFlag ¶
type DateSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, DateSlice]
type DateTimeFlag ¶
type DateTimeFlag = cli.FlagBase[requestValue[string], RequestConfig, dateTimeCreator]
type DateTimeSlice ¶
type DateTimeSlice = cli.SliceBase[requestValue[string], RequestConfig, dateTimeCreator]
type DateTimeSliceFlag ¶
type DateTimeSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, DateTimeSlice]
type FloatFlag ¶
type FloatFlag = cli.FlagBase[requestValue[float64], RequestConfig, requestValueCreator[float64]]
type FloatSlice ¶
type FloatSlice = cli.SliceBase[requestValue[float64], RequestConfig, requestValueCreator[float64]]
type FloatSliceFlag ¶
type FloatSliceFlag = cli.FlagBase[[]requestValue[float64], RequestConfig, FloatSlice]
type IntFlag ¶
type IntFlag = cli.FlagBase[requestValue[int64], RequestConfig, requestValueCreator[int64]]
type IntSlice ¶
type IntSlice = cli.SliceBase[requestValue[int64], RequestConfig, requestValueCreator[int64]]
type IntSliceFlag ¶
type IntSliceFlag = cli.FlagBase[[]requestValue[int64], RequestConfig, IntSlice]
type RequestConfig ¶
type RequestValue ¶
type RequestValue interface {
RequestConfig() RequestConfig
RequestValue() any
}
type StringFlag ¶
type StringFlag = cli.FlagBase[requestValue[string], RequestConfig, requestValueCreator[string]]
type StringSlice ¶
type StringSlice = cli.SliceBase[requestValue[string], RequestConfig, requestValueCreator[string]]
type StringSliceFlag ¶
type StringSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, StringSlice]
type TimeSliceFlag ¶
type TimeSliceFlag = cli.FlagBase[[]requestValue[string], RequestConfig, TimeSlice]
type YAMLFlag ¶
type YAMLFlag = cli.FlagBase[requestValue[any], RequestConfig, requestValueCreator[any]]
type YAMLSlice ¶
type YAMLSlice = cli.SliceBase[requestValue[any], RequestConfig, requestValueCreator[any]]
type YAMLSliceFlag ¶
type YAMLSliceFlag = cli.FlagBase[[]requestValue[any], RequestConfig, YAMLSlice]
Click to show internal directories.
Click to hide internal directories.