Class ShellPrompts
- java.lang.Object
- org.springframework.boot.cli.command.shell.ShellPrompts
public class ShellPrompts extends Object
Abstraction to manage a stack of prompts.
Constructor Summary
Constructors Constructor Description ShellPrompts()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrompt()
Returns the current prompt.void
popPrompt()
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 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)