Beispiel #1
0
  public static void run(
      BRJS brjs, CommandList commandList, LogLevelAccessor logLevelAccessor, String args[])
      throws CommandOperationException {
    ConsoleWriter out = brjs.getConsoleWriter();

    if (!CommandRunner.extractCommandFromArgs(args).equals(new VersionCommand().getCommandName())) {
      out.println(brjs.versionInfo().toString());
      out.println("");
    }

    doRunCommand(brjs, args, out);
  }
Beispiel #2
0
 @Override
 public void doCommand(String[] args) throws CommandArgumentsException, CommandOperationException {
   brjs.getConsoleWriter()
       .println(
           String.format("command '%s' did command with args: (%s)", name, Arrays.toString(args)));
 }