Class CommandGroup

    • 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 name
        command - command
        Returns:
        the modified object
      • run

        public final void run​(String commandName,
                              String[] args)
        Runs the command.
        Parameters:
        commandName - invocation name of the command
        args - command arguments