Skip to content

command_registry

dev_tool.container.command_registry

CommandGroupRegistry

A registry class for command group registration.

This class provides methods for registering all command groups with the dependency injection container.

register_command_groups staticmethod

A method that registers all command groups with the container.

Parameters:

Source code in dev_tool/container/command_registry.py
@staticmethod
def register_command_groups(container: DependencyContainer) -> None:
    """
    A method that registers all command groups with the container.

    :param container: The dependency injection container to register with.
    """

    container.register(HomeCommandGroup, singleton=True)
    container.register(DatabaseCommandGroup, singleton=True)
    container.register(DjangoCommandGroup, singleton=True)
    container.register(PythonCommandGroup, singleton=True)
    # container.register(AICommandGroup, singleton=True)
    container.register(OtherCommandGroup, singleton=True)
    container.register(TaskCommandGroup, singleton=True)