org.sonatype.gshell.command
Class GroupAction
java.lang.Object
org.sonatype.gshell.command.GroupAction
- All Implemented Interfaces:
- Cloneable, CommandAction, OpaqueArguments
public class GroupAction
- extends Object
- implements CommandAction, OpaqueArguments
CommandAction to switch groups.
- Since:
- 2.5
- Author:
- Jason Dillon
GroupAction
public GroupAction(String name)
getName
public String getName()
- Specified by:
getName in interface CommandAction
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleName in interface CommandAction
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.
getMessages
public MessageSource getMessages()
- Specified by:
getMessages in interface CommandAction
getCompleters
public jline.console.completer.Completer[] getCompleters()
- Specified by:
getCompleters in interface CommandAction
clone
public CommandAction clone()
- Specified by:
clone in interface CommandAction- Overrides:
clone in class Object
Copyright © 2008-2011 Sonatype. All Rights Reserved.