Package org.springframework.boot.cli.command.core

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


  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

  public static void main(String... args) {
    System.setProperty("java.awt.headless", Boolean.toString(true));
    LogbackInitializer.initialize();

    CommandRunner runner = new CommandRunner("spring");
    runner.addCommand(new HelpCommand(runner));
    addServiceLoaderCommands(runner);
    runner.addCommand(new ShellCommand());
    runner.addCommand(new HintCommand(runner));
    runner.setOptionCommands(HelpCommand.class, VersionCommand.class);
    runner.setHiddenCommands(HintCommand.class);
View Full Code Here

    };
    given(this.anotherCommand.getName()).willReturn("another");
    given(this.regularCommand.getName()).willReturn("command");
    given(this.regularCommand.getDescription()).willReturn("A regular command");
    this.commandRunner.addCommand(this.regularCommand);
    this.commandRunner.addCommand(new HelpCommand(this.commandRunner));
    this.commandRunner.addCommand(new HintCommand(this.commandRunner));
  }
View Full Code Here

    initializeConsoleReader();
  }

  private ShellCommandRunner createCommandRunner() {
    ShellCommandRunner runner = new ShellCommandRunner();
    runner.addCommand(new HelpCommand(runner));
    runner.addCommands(getCommands());
    runner.addAliases("exit", "quit");
    runner.addAliases("help", "?");
    runner.addAliases("clear", "cls");
    return runner;
View Full Code Here

TOP

Related Classes of org.springframework.boot.cli.command.core.HelpCommand

Copyright © 2018 www.massapicom. 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.