Examples of HelpCommand


Examples of com.codahale.shore.HelpCommand

    @Test
    public void itReturnsAHelpCommandWithSchemaOptions() throws Exception {
      final Runnable runnable = parse("schema", "--ffffuuuuu");
      assertThat(runnable, is(HelpCommand.class));

      final HelpCommand cmd = (HelpCommand) runnable;
      assertThat(cmd.getOutputStream(), is(sameInstance((OutputStream) System.out)));
      assertThat(cmd.getText(), is(
        "Error: Unrecognized option: --ffffuuuuu\n" +
        "\n" +
        "usage: shoretest schema -c <file> [--migration]\n" +
        "   -c, --config=FILE    Which Hibernate config file to use\n" +
        "   --migration          Generate a migration script"
View Full Code Here

Examples of com.onarandombox.MultiverseCore.commands.HelpCommand

    /**
     * Register Multiverse-Core commands to Command Manager.
     */
    private void registerCommands() {
        // Intro Commands
        this.commandHandler.registerCommand(new HelpCommand(this));
        this.commandHandler.registerCommand(new VersionCommand(this));
        this.commandHandler.registerCommand(new ListCommand(this));
        this.commandHandler.registerCommand(new InfoCommand(this));
        this.commandHandler.registerCommand(new CreateCommand(this));
        this.commandHandler.registerCommand(new CloneCommand(this));
View Full Code Here

Examples of de.kopis.glacier.commands.HelpCommand

  }

  private static void findAndExecCommand(OptionSet options, GlacierUploaderOptionParser optionParser) {
    try {
      // Set default
      CommandFactory.setDefaultCommand(new HelpCommand());
      CommandFactory.add(CommandFactory.getDefaultCommand());

      final File credentials = options.valueOf(optionParser.CREDENTIALS);
      final String string_endpoint = options.valueOf(optionParser.ENDPOINT);
View Full Code Here

Examples of grammar.input.stdin.Command.HelpCommand

    catch (Exception e) {
      // invalid command
    }
   
    System.out.println("Invalid command.");
    return new HelpCommand(action);
  }
View Full Code Here

Examples of grammar.input.stdin.Command.HelpCommand

    public boolean accept(Action action, String[] words) {
      return action.equals(Action.HELP);
    }

    public Command interpret(Language language, Action action, String[] words, String[] wordsWithConj) {
      return new HelpCommand(action);
    }
View Full Code Here

Examples of henplus.commands.HelpCommand

        _settingStore = new SetCommand(this);
        _dispatcher = new CommandDispatcher(_settingStore);
        _objectLister = new ListUserObjectsCommand(this);
        _henplusProperties.registerProperty("echo-commands", new EchoCommandProperty(_dispatcher));

        _dispatcher.register(new HelpCommand());

        /*
         * this one prints as well the initial copyright header.
         */
        _dispatcher.register(new AboutCommand());
View Full Code Here

Examples of me.taylorkelly.bigbrother.commands.HelpCommand

        bbc.registerExecutor("stick", new StickCommand(this));
        bbc.registerExecutor("log", new LogCommand(this));
        bbc.registerExecutor("done", new DoneCommand(this));
        bbc.registerExecutor("here", new HereCommand(this));
        bbc.registerExecutor("find", new FindCommand(this));
        bbc.registerExecutor("help", new HelpCommand(this));
        getCommand("bb").setExecutor(bbc);
    }
View Full Code Here

Examples of megamek.client.commands.HelpCommand

        // construct new client
        this.name = name;
        this.host = host;
        this.port = port;

        registerCommand(new HelpCommand(this));
        registerCommand(new MoveCommand(this));
        registerCommand(new RulerCommand(this));
        registerCommand(new ShowEntityCommand(this));
        registerCommand(new FireCommand(this));
        registerCommand(new DeployCommand(this));
View Full Code Here

Examples of megamek.server.commands.HelpCommand

        // register commands
        registerCommand(new DefeatCommand(this));
        registerCommand(new ExportListCommand(this));
        registerCommand(new FixElevationCommand(this));
        registerCommand(new HelpCommand(this));
        registerCommand(new KickCommand(this));
        registerCommand(new ListSavesCommand(this));
        registerCommand(new LocalSaveGameCommand(this));
        registerCommand(new LocalLoadGameCommand(this));
        registerCommand(new ResetCommand(this));
View Full Code Here

Examples of org.apache.accumulo.core.util.shell.commands.HelpCommand

        new InterpreterCommand(), new GrepCommand(), new ImportDirectoryCommand(), new InsertCommand(), new MaxRowCommand(), new ScanCommand()};
    Command[] debuggingCommands = {new ClasspathCommand(), new DebugCommand(), new ListScansCommand(), new ListCompactionsCommand(), new TraceCommand(),
        new PingCommand()};
    Command[] execCommands = {new ExecfileCommand(), new HistoryCommand()};
    Command[] exitCommands = {new ByeCommand(), new ExitCommand(), new QuitCommand()};
    Command[] helpCommands = {new AboutCommand(), new HelpCommand(), new InfoCommand(), new QuestionCommand()};
    Command[] iteratorCommands = {new DeleteIterCommand(), new DeleteScanIterCommand(), new ListIterCommand(), new SetIterCommand(), new SetScanIterCommand(),
        new SetShellIterCommand(), new ListShellIterCommand(), new DeleteShellIterCommand()};
    Command[] otherCommands = {new HiddenCommand()};
    Command[] permissionsCommands = {new GrantCommand(), new RevokeCommand(), new SystemPermissionsCommand(), new TablePermissionsCommand(),
        new UserPermissionsCommand()};
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.