Class PromptCommand

java.lang.Object
org.springframework.boot.cli.command.AbstractCommand
org.springframework.boot.cli.command.shell.PromptCommand
All Implemented Interfaces:
Command

public class PromptCommand extends AbstractCommand
Command to change the Shell prompt.
Since:
1.0.0
Author:
Dave Syer
  • Constructor Details

    • PromptCommand

      public PromptCommand(ShellPrompts shellPrompts)
  • Method Details

    • run

      public ExitStatus run(String... strings) throws Exception
      Description copied from interface: Command
      Run the command.
      Parameters:
      strings - command arguments (this will not include the command itself)
      Returns:
      the outcome of the command
      Throws:
      Exception - if the command fails