org.sonatype.gshell.commands.standard
Class AliasCommand
java.lang.Object
org.sonatype.gshell.command.support.CommandActionSupport
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
AliasCommand
@Inject
public AliasCommand(AliasRegistry aliasRegistry)
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.