yhy/commands/__init__.py
def build(cli, path, package):
    """Build CLI dynamically based on the package structure.
    """
    for _, name, ispkg in iter_modules(path):
        module = import_module(f'.{name}', package)
        if ispkg:
            build(cli.group(name)(module.group),
                  module.__path__,
                  module.__package__)
        else:
            cli.command(name)(module.command)
def build(cli, path, package):
    """Build CLI dynamically based on the package structure.
    """
    for _, name, ispkg in iter_modules(path):
        module = import_module(f'.{name}', package)
        if ispkg:
            build(cli.group(name)(module.group),
                  module.__path__,
                  module.__package__)
        else:
            cli.command(name)(module.command)
def build ( cli , path , package ) : for _ , name , ispkg in iter_modules ( path ) : module = import_module ( f'.{name}' , package ) if ispkg : build ( cli . group ( name ) ( module . group ) , module . __path__ , module . __package__ ) else : cli . command ( name ) ( module . command )
Build CLI dynamically based on the package structure.
Build CLI dynamically based on the package structure .