org.sonatype.gshell.shell
Class ShellPrompt

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.sonatype.gshell.console.ConsolePrompt
DEFAULT_PROMPT
 
Constructor Summary
ShellPrompt(javax.inject.Provider<Variables> variables, Branding branding)
           
 
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
 

Constructor Detail

ShellPrompt

@Inject
public ShellPrompt(javax.inject.Provider<Variables> variables,
                          Branding branding)
Method Detail

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.