예제 #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);
   }
 }
예제 #2
0
파일: Site.java 프로젝트: nmldiegues/stibt
 @Override
 public void complete(
     final Context context, final ProcessedCommand procCmd, final List<String> candidates) {
   Completer.addPrefixMatches(
       procCmd.getCurrentArgument(), context.getConnection().getAvailableCaches(), candidates);
 }