org.sonatype.gshell.commands.standard
Class UnaliasCommand

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

@Command(name="unalias")
public class UnaliasCommand
extends CommandActionSupport

Undefine an alias.

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
UnaliasCommand(AliasRegistry aliasRegistry)
           
 
Method Summary
 Object execute(CommandContext context)
          Execute the command action.
 UnaliasCommand installCompleters(jline.console.completer.Completer c1)
           
 
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

UnaliasCommand

@Inject
public UnaliasCommand(AliasRegistry aliasRegistry)
Method Detail

installCompleters

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

execute

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

Parameters:
context - The execution context of the command.
Returns:
The result of the command execution.


Copyright © 2008-2011 Sonatype. All Rights Reserved.