Examples of HelpCommand


Examples of org.springframework.boot.cli.command.core.HelpCommand

    initializeConsoleReader();
  }

  private ShellCommandRunner createCommandRunner(List<Command> commands) {
    ShellCommandRunner runner = new ShellCommandRunner();
    runner.addCommand(new HelpCommand(runner));
    if (commands != null) {
      runner.addCommands(commands);
    }
    runner.addCommand(new PromptCommand(this.prompts));
    runner.addCommand(new ClearCommand(this.consoleReader));
View Full Code Here

Examples of org.springframework.boot.cli.command.core.HelpCommand

  protected void doMain(String[] args) {
    System.setProperty("java.awt.headless", Boolean.toString(true));
    LogbackInitializer.initialize();

    CommandRunner runner = new CommandRunner(getMainCommandName());
    runner.addCommand(new HelpCommand(runner));

    for (Command command : commands) {
      runner.addCommand(command);
    }
    runner.setOptionCommands(HelpCommand.class, VersionCommand.class);
View Full Code Here

Examples of org.twdata.maven.cli.commands.HelpCommand

    private void buildCommands() {
        cliCommands.add(getSpecializedCliMojoCommand());
        cliCommands.add(new ExitCommand());
        cliCommands.add(new ListProjectsCommand(modules.keySet()));
        cliCommands.add(new HelpCommand(cliCommands));
    }
View Full Code Here

Examples of restx.shell.commands.HelpCommand

        }
    }

    protected Set<ShellCommand> findCommands() {
        Set<ShellCommand> commands = factory.queryByClass(ShellCommand.class).findAsComponents();
        HelpCommand helpCommand = new HelpCommand(commands);
        commands = Sets.newLinkedHashSet(commands);
        commands.add(helpCommand);
        return commands;
    }
View Full Code Here

Examples of syam.BookEditor.Command.HelpCommand

  /**
   * コマンドを登録
   */
  private void registerCommands(){
    // Intro Commands
    commands.add(new HelpCommand());

    // General Commands
    commands.add(new CopyCommand());
    commands.add(new EditCommand());
    commands.add(new TitleCommand());
View Full Code Here

Examples of syam.BookEditor.Command.HelpCommand

          // 実行
          return command.run(this, sender, args, commandLabel);
        }
      }
      // 有効コマンドなし ヘルプ表示
      new HelpCommand().run(this, sender, args, commandLabel);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of uk.co.oliwali.HawkEye.commands.HelpCommand

   * Registers commands for use by the command manager
   */
  private void registerCommands() {

        //Add commands
        commands.add(new HelpCommand());
        commands.add(new ToolBindCommand());
        commands.add(new ToolResetCommand());
        commands.add(new ToolCommand());
        commands.add(new SearchCommand());
        commands.add(new PageCommand());
View Full Code Here

Examples of uk.co.oliwali.HawkEye.commands.HelpCommand

        String[] cmds = command.name.split(" ");
        for (int i = 0; i < cmds.length; i++)
          if (i >= args.length || !cmds[i].equalsIgnoreCase(args[i])) continue outer;
        return command.run(this, sender, args, commandLabel);
      }
      new HelpCommand().run(this, sender, args, commandLabel);
      return true;
    }
    return false;

  }
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.