Hi all,
I'm trying to build a TreeCompleter that ends up working with the following command line:
POST dev_env /free/form/url src/resources/test.json result.json
where:
- "POST" is auto-completed
- "dev_env" is auto-completed from a list built from a configuration file
- /free/form/url is manually typed by the user
- src/resources/test.json is a FilesCompleter
- result.json is manually typed
and I can't get it to work. I'm trying with different variations of:
Completer completer = new Completers.TreeCompleter(
node(
"POST",
node(getResourceCompleter()),
"free-text",
node(new Completers.FilesCompleter(Paths.get("."))),
"free-text"
)
)
Specifically trying out different XxxCompleters in the place of those "free-text" arguments, but after I type "POST dev_env /my/url ", completion just stops. Pressing tab doesn't do anything anymore, while I'm expecting it to give me a list of filenames to complete from.
Any suggestions?
Maarten