org.sonatype.gshell.shell
Class ShellPrompt
java.lang.Object
org.sonatype.gshell.shell.ShellPrompt
- All Implemented Interfaces:
- ConsolePrompt
public class ShellPrompt
- extends Object
- implements ConsolePrompt
Shell ConsolePrompt, which determines the prompt from the
VariableNames.SHELL_PROMPT expression.
- Since:
- 2.0
- Author:
- Jason Dillon
|
Method Summary |
String |
prompt()
Render the prompt which the console should display for input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShellPrompt
@Inject
public ShellPrompt(javax.inject.Provider<Variables> variables,
Branding branding)
prompt
public String prompt()
- Description copied from interface:
ConsolePrompt
- Render the prompt which the console should display for input.
- Specified by:
prompt in interface ConsolePrompt
- Returns:
- The console prompt or null for the
ConsolePrompt.DEFAULT_PROMPT.
Copyright © 2008-2011 Sonatype. All Rights Reserved.