Documentation
¶
Index ¶
- type UhohCommand
- type UhohCommandDescription
- type UhohCommandLoader
- func (u *UhohCommandLoader) IsFileSupported(f fs.FS, fileName string) bool
- func (u *UhohCommandLoader) LoadCommands(f fs.FS, entryName string, options []cmds.CommandDescriptionOption, ...) ([]cmds.Command, error)
- func (u *UhohCommandLoader) LoadUhohCommandFromReader(s io.Reader, options []cmds.CommandDescriptionOption, _ []alias.Option) ([]cmds.Command, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UhohCommand ¶
type UhohCommand struct { *glazedcmds.CommandDescription `yaml:",inline"` Form *pkg.Form `yaml:"form"` }
func NewUhohCommand ¶
func NewUhohCommand( description *glazedcmds.CommandDescription, form *pkg.Form, ) (*UhohCommand, error)
func (*UhohCommand) Run ¶
func (u *UhohCommand) Run(ctx context.Context, parsedLayers *layers.ParsedLayers) error
type UhohCommandDescription ¶
type UhohCommandDescription struct { Name string `yaml:"name"` Short string `yaml:"short"` Long string `yaml:"long,omitempty"` Flags []*parameters.ParameterDefinition `yaml:"flags,omitempty"` Arguments []*parameters.ParameterDefinition `yaml:"arguments,omitempty"` Layers []layers.ParameterLayer `yaml:"layers,omitempty"` Type string `yaml:"type,omitempty"` Form struct { Name string `yaml:"name,omitempty"` Theme string `yaml:"theme,omitempty"` Groups []struct { Name string `yaml:"name,omitempty"` Fields []fieldWithRawAttributes `yaml:"fields"` } `yaml:"groups"` } `yaml:"form"` }
type UhohCommandLoader ¶
type UhohCommandLoader struct{}
func (*UhohCommandLoader) IsFileSupported ¶
func (u *UhohCommandLoader) IsFileSupported(f fs.FS, fileName string) bool
func (*UhohCommandLoader) LoadCommands ¶
func (*UhohCommandLoader) LoadUhohCommandFromReader ¶ added in v0.0.3
func (u *UhohCommandLoader) LoadUhohCommandFromReader( s io.Reader, options []cmds.CommandDescriptionOption, _ []alias.Option, ) ([]cmds.Command, error)
Modify the LoadUhohCommandFromReader function
Click to show internal directories.
Click to hide internal directories.