bundles

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidBundleCommandPair is returned by FindCommandEntry when the
	// command entry string doesn't look like  "command" or "bundle:command".
	ErrInvalidBundleCommandPair = errors.New("invalid bundle:comand pair")
)

Functions

func Default

func Default() (data.Bundle, error)

func LoadBundle

func LoadBundle(r io.Reader) (data.Bundle, error)

LoadBundle is called by ...

func LoadBundleFromFile added in v0.8.2

func LoadBundleFromFile(file string) (data.Bundle, error)

Types

type CommandEntryFinder

type CommandEntryFinder interface {
	FindCommandEntry(ctx context.Context, bundle, command string) ([]data.CommandEntry, error)
}

FindCommandEntry is used to find the enabled commands with the provided bundle and command names. If either is empty, it is treated as a wildcard. Importantly, this must only return ENABLED commands!

Jump to

Keyboard shortcuts

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