org.springframework.boot.cli.command.shell

Class ShellPrompts



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

      • ShellPrompts

        public ShellPrompts()
    • Method Detail

      • pushPrompt

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

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

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