From 6e9afe3e54ab6fb0162393150b7892655b4561d4 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 18:19:13 +0200 Subject: refactor(node): move the CLI out of daemon.py into cli/ Each `if args.command == ...` branch of main() becomes a function in cli/ (one module per family of verbs); the parser, the process setup and a VERBS table go to cli/parser.py and cli/dispatch.py. daemon.main runs the verb or starts the daemon. Tests patch the CLI through conftest.patch_cli; the CLI golden is unchanged. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/src/meshbay_node/cli/__init__.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 packages/meshbay-node/src/meshbay_node/cli/__init__.py (limited to 'packages/meshbay-node/src/meshbay_node/cli/__init__.py') diff --git a/packages/meshbay-node/src/meshbay_node/cli/__init__.py b/packages/meshbay-node/src/meshbay_node/cli/__init__.py new file mode 100644 index 0000000..45bb893 --- /dev/null +++ b/packages/meshbay-node/src/meshbay_node/cli/__init__.py @@ -0,0 +1,2 @@ +"""`meshbay-node`'s command line: the verbs that run and exit, as opposed to +the daemon that `daemon.main` starts when none is given.""" -- cgit v1.2.3