Package: org.grails.cli.profile.commands

## [Groovy] Class CommandRegistry

- org.grails.cli.profile.commands.CommandRegistry

- Registry of available commands

  Authors:
    Graeme Rocher
  Since:
    3.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static java.util.Collection<Command>` | `findCommands(ProfileRepository repository)`
    `` | `static java.util.Collection<Command>` | `findCommands(Profile profile, boolean inherited = false )`
    `` | `static Command` | `getCommand(java.lang.String name, ProfileRepository repository)` Returns a command for the given name and repository

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### static java.util.Collection<Command> findCommands(ProfileRepository repository)

    - #### static java.util.Collection<Command> findCommands(Profile profile, boolean inherited = false )

    - #### static Command getCommand(java.lang.String name, ProfileRepository repository)

      Returns a command for the given name and repository

      Parameters:
        `name` - The command name
        `repository` - The ProfileRepository instance
      Returns:
        A command or null of non exists