OCDocker.Console.app module

Console application entrypoint.

Coordinates environment bootstrap (when invoked standalone), logging setup, banner rendering, namespace construction, and the interactive REPL loop.

OCDocker.Console.app.run_console(args=None)[source]

Start the console after the environment has been bootstrapped.

Parameters:

args (Optional[argparse.Namespace], optional) – Parsed CLI namespace from ocdocker console. When provided, logging is configured from CLI flags and --ipython is honored.

Returns:

Exit code (0 for success, non-zero on failure).

Return type:

int

OCDocker.Console.app.main(argv=None)[source]

Standalone console entry (python -m OCDocker.Console).

Bootstraps OCDocker via OCDocker.Initialise when argv is None, or via CLI global-flag preparse when a custom argv list is supplied.

Parameters:

argv (Optional[list[str]], optional) – Command-line arguments excluding the program name. Defaults to compatibility Initialise parsing when None.

Returns:

Exit code from run_console().

Return type:

int