org.sonatype.gshell.commands.standard
Class AliasCommand

java.lang.Object
  extended by org.sonatype.gshell.command.support.CommandActionSupport
      extended by org.sonatype.gshell.commands.standard.AliasCommand
All Implemented Interfaces:
Cloneable, CommandAction, CliProcessorAware, NameAware

@Command(name="alias")
public class AliasCommand
extends CommandActionSupport
implements CliProcessorAware

Define an alias or list defined aliases.

Since:
2.5
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.gshell.command.CommandAction
CommandAction.Result
 
Field Summary
 
Fields inherited from class org.sonatype.gshell.command.support.CommandActionSupport
log
 
Constructor Summary
AliasCommand(AliasRegistry aliasRegistry)
           
 
Method Summary
 Object execute(CommandContext context)
          Execute the command action.
 AliasCommand installCompleters(jline.console.completer.Completer c1)
           
 void setProcessor(CliProcessor processor)
           
 
Methods inherited from class org.sonatype.gshell.command.support.CommandActionSupport
clone, createMessages, getCompleters, getMessages, getName, getSimpleName, setCompleters, setCompleters, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasCommand

@Inject
public AliasCommand(AliasRegistry aliasRegistry)
Method Detail

installCompleters

@Inject
public AliasCommand installCompleters(jline.console.completer.Completer c1)

setProcessor

public void setProcessor(CliProcessor processor)
Specified by:
setProcessor in interface CliProcessorAware

execute

public Object execute(CommandContext context)
               throws Exception
Description copied from interface: CommandAction
Execute the command action.

Specified by:
execute in interface CommandAction
Parameters:
context - The execution context of the command.
Returns:
The result of the command execution.
Throws:
Exception - Command execution failed.


Copyright © 2008-2011 Sonatype. All Rights Reserved.