cmds

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterCommand

type FilterCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

FilterCommand implements a glazed command for filtering other commands

func NewFilterCommand

func NewFilterCommand(commands []*cmds.CommandDescription) (*FilterCommand, error)

NewFilterCommand creates a new filter command with the given list of commands to filter

func (*FilterCommand) RunIntoGlazeProcessor

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

RunIntoGlazeProcessor implements the GlazeCommand interface

type FilterSettings

type FilterSettings struct {
	Type          string   `glazed.parameter:"type"`
	Types         []string `glazed.parameter:"types"`
	Tag           string   `glazed.parameter:"tag"`
	Tags          []string `glazed.parameter:"tags"`
	AllTags       []string `glazed.parameter:"all-tags"`
	AnyTags       []string `glazed.parameter:"any-tags"`
	Path          string   `glazed.parameter:"path"`
	PathGlob      string   `glazed.parameter:"path-glob"`
	PathPrefix    string   `glazed.parameter:"path-prefix"`
	Name          string   `glazed.parameter:"name"`
	NamePattern   string   `glazed.parameter:"name-pattern"`
	MetadataKey   string   `glazed.parameter:"metadata-key"`
	MetadataValue string   `glazed.parameter:"metadata-value"`
}

FilterSettings contains all the filter parameters

Jump to

Keyboard shortcuts

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