Delegate ConsoleCommand.AutocompleteMethod

Namespace
Elegy.ConsoleSystem.Commands
Assembly
Elegy.ConsoleSystem.dll

Called when the user has typed this command's Name but is probably missing parameters. Provides autocomplete suggestions.

public delegate bool ConsoleCommand.AutocompleteMethod(ReadOnlySpan<char> text, ref string[] outSuggestions)

Parameters

text ReadOnlySpan<char>

The current text input in the console.

outSuggestions string[]

Output suggestions. For performance reasons this is a preallocated buffer of strings.

Returns

bool

If anything is available to autocomplete.