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 ¶
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!
Click to show internal directories.
Click to hide internal directories.