feat(mac-receiver): add cp0-mac-sync CLI and LaunchAgent management

This commit is contained in:
2026-11-18 07:13:51 -05:00
parent 555919af82
commit a5f8c5d886
4 changed files with 667 additions and 0 deletions

23
mac-receiver/bin/cp0-mac-sync Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""CLI entrypoint for CardputerZero Mac photo sync management."""
from __future__ import annotations
import os
import sys
from pathlib import Path
def _ensure_package_on_path() -> None:
package_root = str(Path(os.path.realpath(__file__)).resolve().parents[1])
if package_root not in sys.path:
sys.path.insert(0, package_root)
_ensure_package_on_path()
from cp0_mac_receiver.cli import run_cli # noqa: E402
if __name__ == "__main__":
sys.exit(run_cli(sys.argv[1:]))