Skip to content

Personal AI, On Personal Devices

Python

Add __main__.py entry point to enable CLI execution via `python -m openjarvis.cli`. Previously, running `uv run jarvis start` would fail to start the process with error: "No module named openjarvis.cli.__main__; 'openjarvis.cli' is a package and cannot be directly executed" because the CLI package lacked an entry point.

Patrick Fungbb3053efcac3
diff --git a/src/openjarvis/cli/__main__.py b/src/openjarvis/cli/__main__.py
new file mode 100644
index 00000000..0055dc66
--- /dev/null
+++ b/src/openjarvis/cli/__main__.py
@@ -0,0 +1,6 @@
+"""Entry point for CLI execution."""
+
+from openjarvis.cli import main
+
+if __name__ == "__main__":
+ main()