- Add unified coinhunter_shim.py that accepts subcommands (pre/gate/review/rotate-log) - Update SKILL.md gate pseudocode to read optional ~/.coinhunter/platform.json - Split cron/setup examples into Hermes and OpenClaw variants across docs - Introduce platform.json schema in user-data-layout.md - Remove stale auto_trader.py/run_trader.sh references from auto-trading-guide.md - Keep legacy shims as backward-compatible wrappers
24 lines
662 B
Python
24 lines
662 B
Python
#!/usr/bin/env python3
|
|
"""Cross-platform cron shim: delegates any coinhunter subcommand via CLI."""
|
|
import shutil
|
|
import subprocess
|
|
import sys
|
|
|
|
BIN = shutil.which("coinhunter") or shutil.which("coinhunter.exe")
|
|
if not BIN:
|
|
print(
|
|
"error: coinhunter CLI not found in PATH. Install with: pipx install coinhunter",
|
|
file=sys.stderr,
|
|
)
|
|
sys.exit(127)
|
|
|
|
if len(sys.argv) < 2:
|
|
print("usage: coinhunter_shim.py <subcommand> [args...]", file=sys.stderr)
|
|
print("example: coinhunter_shim.py pre", file=sys.stderr)
|
|
sys.exit(2)
|
|
|
|
subcommand = sys.argv[1]
|
|
args = sys.argv[2:]
|
|
|
|
sys.exit(subprocess.run([BIN, subcommand, *args]).returncode)
|