cmds

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCommandsIntoProcessor added in v0.0.19

func ListCommandsIntoProcessor(ctx context.Context, commands []cmds.Command, gp middlewares.Processor) error

func NewRawCommandLoader added in v0.0.34

func NewRawCommandLoader() loaders.CommandLoader

Types

type RawCommand added in v0.0.19

type RawCommand struct {
	*cmds.CommandDescription
	YAMLContent map[string]interface{}
	Content     []byte
	Layout      []*layout.Section
}

func (*RawCommand) ToYAML added in v0.0.19

func (r *RawCommand) ToYAML(w io.Writer) error

type RawCommandLoader added in v0.0.19

type RawCommandLoader struct{}

func (*RawCommandLoader) IsFileSupported added in v0.0.34

func (r2 *RawCommandLoader) IsFileSupported(f fs.FS, fileName string) bool

func (*RawCommandLoader) LoadCommands added in v0.0.35

func (r *RawCommandLoader) LoadCommands(
	f fs.FS, entryName string,
	options []cmds.CommandDescriptionOption,
	aliasOptions []alias.Option,
) ([]cmds.Command, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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