Skip to main content
cngx-src documentation

createDefaultCommandMatcher

Functioncommon/commandv0.1.0

projects/common/command/match.ts

Description#

Builds the default matcher: a pure label/keyword ranker. An empty query returns every (scoped) command at score 0 in registration order; a non-empty query keeps only commands that match label or keyword, ranked label-exact > label-prefix > label-substring > keyword. The optional scope filters to commands whose group equals it.

Signature#

createDefaultCommandMatcher()

Returns#

CngxCommandMatcher