Documentation ¶
Index ¶
- func ParamsMapAdd[K, V any](paramsMap ParamsMap)
- type Config
- type ConfigNames
- type ConfigTypes
- type Encoder
- func (e Encoder[T]) Encode(in Input) (ukhelp.Output[T], error)
- func (e Encoder[T]) EncodeArguments(in Input) ([]ukhelp.OutputArgument[T], error)
- func (e Encoder[T]) EncodeCommand(in Input) (ukhelp.OutputCommand[T], error)
- func (e Encoder[T]) EncodeFlags(in Input) ([]ukhelp.OutputFlag[T], error)
- func (e Encoder[T]) EncodeSubcommands(in Input) ([]ukhelp.OutputSubcommand[T], error)
- type GenerateOutput
- type GenerateParams
- type Generator
- type Input
- type Option
- type ParamsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParamsMapAdd ¶
Types ¶
type Config ¶
type Config struct { Log *slog.Logger Spec []ukspec.Option Names ConfigNames Types ConfigTypes }
type ConfigNames ¶
type Encoder ¶
func (Encoder[T]) EncodeArguments ¶
func (e Encoder[T]) EncodeArguments(in Input) ([]ukhelp.OutputArgument[T], error)
func (Encoder[T]) EncodeCommand ¶
func (e Encoder[T]) EncodeCommand(in Input) (ukhelp.OutputCommand[T], error)
func (Encoder[T]) EncodeFlags ¶
func (e Encoder[T]) EncodeFlags(in Input) ([]ukhelp.OutputFlag[T], error)
func (Encoder[T]) EncodeSubcommands ¶
func (e Encoder[T]) EncodeSubcommands(in Input) ([]ukhelp.OutputSubcommand[T], error)
type GenerateOutput ¶
func (GenerateOutput) MarshalText ¶
func (o GenerateOutput) MarshalText() ([]byte, error)
func (*GenerateOutput) UnmarshalText ¶
func (o *GenerateOutput) UnmarshalText(text []byte) (err error)
type GenerateParams ¶
type GenerateParams struct {
Out GenerateOutput `ukflag:"o out"`
}
func (*GenerateParams) UkaseInit ¶
func (gp *GenerateParams) UkaseInit()
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.