Class ShellPrompts

java.lang.Object
org.springframework.boot.cli.command.shell.ShellPrompts

public class ShellPrompts extends Object
Abstraction to manage a stack of prompts.
Since:
1.0.0
Author:
Phillip Webb
  • Constructor Details

    • ShellPrompts

      public ShellPrompts()
  • Method Details

    • pushPrompt

      public void pushPrompt(String prompt)
      Push a new prompt to be used by the shell.
      Parameters:
      prompt - the prompt
      See Also:
    • popPrompt

      public void popPrompt()
      Pop a previously pushed prompt, returning to the previous value.
      See Also:
    • getPrompt

      public String getPrompt()
      Returns the current prompt.
      Returns:
      the current prompt