getSuggestions

Computes command suggestions from the user input and the available commands.

Commands are already filtered to only include those which can be shown, only requiring you to match against the user input.

Return

The list of commands suggested to the user

Parameters

topLevelName

The user input, which should correspond to the top level command

candidates

The available commands, all of them can be shown to the user