CommandCompleter
🛈 DocStrings¶
Main command completion implementation.
Source code in src/slashed/completion.py
__init__
¶
__init__(commands: dict[str, BaseCommand]) -> None
Initialize command completer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
commands
|
dict[str, BaseCommand]
|
Mapping of command names to command instances |
required |
Source code in src/slashed/completion.py
add_global_provider
¶
add_global_provider(provider: CompletionProvider) -> None
get_completions
async
¶
get_completions(context: CompletionContext[Any]) -> AsyncIterator[CompletionItem]
Get completions for the current context.