@ExtensionPoint public interface CompleterService
getCommands()
, and a Map from a CliCommandOption with short-opt "-f"/
long-opt "--fooId" to the relevant TabCompleter
instance for getOptionCompleters()
.
There are several built-in completions which Thermostat provides. If your command uses a vmId, then declaring a
-v/--vmId option in your thermostat-plugin.xml will give you automagic vmId completions in Thermostat shell.
Likewise, -a/--agentId, -d/--dbUrl, and -f/--filename completions are provided if you simply include these options
in your XML.AbstractCompleterService
Modifier and Type | Method and Description |
---|---|
Set<String> |
getCommands()
The set of command names for which this service provides completions.
|
Map<CliCommandOption,? extends TabCompleter> |
getOptionCompleters()
Provides the mapping of options to corresponding completers.
|
Map<String,Map<CliCommandOption,? extends TabCompleter>> |
getSubcommandCompleters()
Provides the mapping of subcommand options to corresponding completers.
|
Set<String> getCommands()
Map<CliCommandOption,? extends TabCompleter> getOptionCompleters()
Map<String,Map<CliCommandOption,? extends TabCompleter>> getSubcommandCompleters()
getOptionCompleters()
.Copyright © 2017. All rights reserved.