Class ShellPrompts
java.lang.Object
org.springframework.boot.cli.command.shell.ShellPrompts
Abstraction to manage a stack of prompts.
- Since:
- 1.0.0
- Author:
- Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current prompt.void
Pop a previously pushed prompt, returning to the previous value.void
pushPrompt
(String prompt) Push a new prompt to be used by the shell.
-
Constructor Details
-
ShellPrompts
public ShellPrompts()
-
-
Method Details
-
pushPrompt
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
Returns the current prompt.- Returns:
- the current prompt
-