cmds

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const RenderSlug = "render"

Variables

This section is empty.

Functions

func NewLsCommand

func NewLsCommand() *cobra.Command

NewLsCommand returns a new command that lists all the programs available in the repositories.

func NewRenderCommand

func NewRenderCommand() *cobra.Command

func NewRunCommand

func NewRunCommand() *cobra.Command

NewRunCommand returns a command that can be used to run either commands from a file or from a repository.

It currently doesn't allow overloading flags in the underlying program run by cliopatra.

See https://github.com/go-go-golems/glazed/issues/220

Types

type LsCommandSettings added in v0.1.0

type LsCommandSettings struct {
	Repositories []string `glazed.parameter:"repository"`
}

type LsProgramCommand

type LsProgramCommand struct {
	*cmds.CommandDescription
}

func (*LsProgramCommand) RunIntoGlazeProcessor added in v0.1.0

func (l *LsProgramCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

Jump to

Keyboard shortcuts

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