command

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BleveFilter

type BleveFilter struct {
	// contains filtered or unexported fields
}

BleveFilter wraps a Bleve query for command filtering

func NewBleveFilter

func NewBleveFilter(q query.Query) *BleveFilter

NewBleveFilter creates a new BleveFilter with the given query

func (*BleveFilter) And

func (f *BleveFilter) And(filters ...*BleveFilter) *BleveFilter

And combines multiple filters with AND logic

func (*BleveFilter) GetQuery

func (f *BleveFilter) GetQuery() query.Query

GetQuery returns the underlying Bleve query

func (*BleveFilter) Not

func (f *BleveFilter) Not() *BleveFilter

Not negates the filter

func (*BleveFilter) Or

func (f *BleveFilter) Or(filters ...*BleveFilter) *BleveFilter

Or combines multiple filters with OR logic

type CommandIndex

type CommandIndex struct {
	// contains filtered or unexported fields
}

CommandIndex manages the in-memory Bleve index for command filtering

func NewCommandIndex

func NewCommandIndex(commands []*cmds.CommandDescription) (*CommandIndex, error)

NewCommandIndex creates a new index from a list of commands

func (*CommandIndex) Close

func (ci *CommandIndex) Close() error

Close releases the index resources

func (*CommandIndex) Search

Search executes a query and returns matching commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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