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); }
@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))); }