Module

cli.helpers.cli_app_loader

Helper for loading CLI applications from module paths.

Functions

load_cli_app
Load a CLI application from a module path.
2 Any
def load_cli_app(app_path: str, cli: CLIOutput | None = None) -> Any

Load a CLI application from a module path.

Parameters 2

Name Type Default Description
app_path str

Module path in format "module.path:attribute_name" (e.g., "bengal.cli:main")

cli CLIOutput | None None

Optional CLIOutput instance (creates new if not provided)

Returns

Any

The CLI application object (typically a Click group or command)