Skip to content

Commit

Permalink
fix tab compeletion
Browse files Browse the repository at this point in the history
  • Loading branch information
fqliao committed Apr 18, 2019
1 parent 8b56c42 commit 21a99fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/console/ConsoleClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,23 @@ public static void main(String[] args) {
"listCNSManager", "grantSysConfigManager", "revokeSysConfigManager", "listSysConfigManager", "quit", "exit");

for (String command : commands) {
completers.add(new ArgumentCompleter(new StringsCompleterIgnoreCase(command)));
completers.add(new ArgumentCompleter(new StringsCompleterIgnoreCase(command), new StringsCompleterIgnoreCase()));
}

Path path = FileSystems.getDefault().getPath("solidity/contracts/", "");
commands = Arrays.asList("deploy", "call", "deployByCNS", "callByCNS", "queryCNS");

for (String command : commands) {
completers.add(new ArgumentCompleter(new StringsCompleter(command), new FilesCompleter(path)));
completers.add(new ArgumentCompleter(new StringsCompleter(command), new FilesCompleter(path), new StringsCompleterIgnoreCase()));
}

commands = Arrays.asList("setSystemConfigByKey", "getSystemConfigByKey");

for (String command : commands) {
completers.add(new ArgumentCompleter(new StringsCompleterIgnoreCase(command),
new StringsCompleterIgnoreCase(Common.TxCountLimit)));
completers.add(new ArgumentCompleter(new StringsCompleterIgnoreCase(command),
new StringsCompleterIgnoreCase(Common.TxGasLimit)));
completers.add(new ArgumentCompleter(new StringsCompleter(command),
new StringsCompleter(Common.TxCountLimit), new StringsCompleterIgnoreCase()));
completers.add(new ArgumentCompleter(new StringsCompleter(command),
new StringsCompleter(Common.TxGasLimit), new StringsCompleterIgnoreCase()));
}

Terminal terminal = TerminalBuilder.builder()
Expand Down

0 comments on commit 21a99fe

Please sign in to comment.