Skip to content

Commit

Permalink
GroovyEngine: more tab-completions variables, methods and constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 12, 2020
1 parent 53d00b8 commit 88cf67d
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,9 @@ public List<String> getNamedPipes() {
return out;
}

private Set<String> variables() {
return engine.find().keySet();
}

@Override
public List<Completer> scriptCompleters() {
List<Completer> out = new ArrayList<>();
out.add(new ArgumentCompleter(new StringsCompleter(this::variables), NullCompleter.INSTANCE));
out.add(new ArgumentCompleter(new StringsCompleter(this::scriptNames)
, new OptionCompleter(NullCompleter.INSTANCE
, this::commandOptions
Expand Down
Loading

0 comments on commit 88cf67d

Please sign in to comment.