Class CommandGroup
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.cli.AbstractCommand
-
- org.vx68k.bitbucket.api.client.cli.CommandGroup
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
CLI
,TeamCommandGroup
,UserCommandGroup
public class CommandGroup extends AbstractCommand
Group of commands.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Constructor Summary
Constructors Constructor Description CommandGroup(BitbucketClient bitbucketClient)
Constructs the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandGroup
add(String name, Command command)
Add a command.void
run(String commandName, String[] args)
Runs the command.-
Methods inherited from class org.vx68k.bitbucket.api.client.cli.AbstractCommand
getBitbucketClient
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.vx68k.bitbucket.api.client.cli.Command
getDescription
-
-
-
-
Constructor Detail
-
CommandGroup
public CommandGroup(BitbucketClient bitbucketClient)
Constructs the object.- Parameters:
bitbucketClient
- a Bitbucket API client
-
-
Method Detail
-
add
public final CommandGroup add(String name, Command command)
Add a command.- Parameters:
name
- command namecommand
- command- Returns:
- the modified object
-
-