search

package
v0.0.0-...-96179aa Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Advanced = advanced{}

Functions

This section is empty.

Types

type Match

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

func Recurse

func Recurse(match func(core.CommandStatic) int) []Match

Recurse will recursively go through all of the commands and run the given check function on them. If the returned value is true then that specific command is added to the returned list. If both a parent and their child are matched then only the child is added to the list.

func Search(query string, t core.CommandType) []Match

Search will recursively go through all of the commands and try to match them using the given query. It will check a command's names, description and usage args.

Jump to

Keyboard shortcuts

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