Skip to content

main

Main module for Pipewine CLI, containing the main entry point and the main CLI app.

pipewine_app = Typer(invoke_without_command=True, pretty_exceptions_enable=False, add_completion=False, no_args_is_help=True, callback=_main_callback) module-attribute

Typer app for the main Pipewine CLI.

main()

Pipewine CLI entry point.

Source code in pipewine/cli/main.py
def main() -> None:  # pragma: no cover
    """Pipewine CLI entry point."""
    command_names = [x.name for x in pipewine_app.registered_commands]
    for i, token in enumerate(sys.argv):
        if token in command_names:
            break
        if token in ["-m" or "--module"]:
            import_module(sys.argv[i + 1])
    pipewine_app()