Beispiel #1
0
 @Override
 public void execute(Context context, ProcessedCommand commandLine) {
   context.println("Client Version " + Version.class.getPackage().getImplementationVersion());
   if (context.isConnected()) {
     super.execute(context, commandLine);
   }
 }
Beispiel #2
0
 @Override
 public void complete(
     final Context context, final ProcessedCommand procCmd, final List<String> candidates) {
   Completer.addPrefixMatches(
       procCmd.getCurrentArgument(), context.getConnection().getAvailableCaches(), candidates);
 }