4b6817381b
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
CI / coverage-report (push) Has been cancelled
CI / test-kubernetes (push) Has been cancelled
CI / should-run-thorough (push) Has been cancelled
CI / test-thorough (cloudwatch-demo) (push) Has been cancelled
CI / test-thorough (flink-ecs) (push) Has been cancelled
CI / test-thorough (upstream-lambda) (push) Has been cancelled
CI / test-thorough (prefect-ecs-fargate) (push) Has been cancelled
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Has been cancelled
Benchmark image — build + push to ECR (any adapter) / build + push (push) Has been cancelled
CI / quality (ubuntu-latest) (push) Has been cancelled
CI / test (tools-runtime) (push) Has been cancelled
CI / test (e2e-general) (push) Has been cancelled
CI / test (cli-runtime) (push) Has been cancelled
CI / test (e2e-provider-and-openclaw) (push) Has been cancelled
CI / test (integrations-and-misc) (push) Has been cancelled
Release / verify (push) Has been cancelled
Release / build-python-dist (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Has been cancelled
Release / publish-release (push) Has been cancelled
Release / publish-main-release (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Has been cancelled
Release / prepare (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Has been cancelled
58 lines
1.6 KiB
Python
58 lines
1.6 KiB
Python
"""CLI command registration helpers."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import click
|
|
|
|
from surfaces.cli.commands.agent import fleet
|
|
from surfaces.cli.commands.auth import auth_command
|
|
from surfaces.cli.commands.config import config_command
|
|
from surfaces.cli.commands.cron import cron_command
|
|
from surfaces.cli.commands.debug import debug_command
|
|
from surfaces.cli.commands.doctor import doctor_command
|
|
from surfaces.cli.commands.gateway import gateway_command
|
|
from surfaces.cli.commands.general import (
|
|
health_command,
|
|
investigate_command,
|
|
uninstall_command,
|
|
update_command,
|
|
version_command,
|
|
)
|
|
from surfaces.cli.commands.guardrails import guardrails
|
|
from surfaces.cli.commands.hermes import hermes_command
|
|
from surfaces.cli.commands.integrations import integrations
|
|
from surfaces.cli.commands.messaging import messaging
|
|
from surfaces.cli.commands.misses import misses_command
|
|
from surfaces.cli.commands.onboard import onboard
|
|
from surfaces.cli.commands.tests import tests
|
|
from surfaces.cli.commands.watchdog import watchdog_command
|
|
|
|
_COMMANDS: tuple[click.Command, ...] = (
|
|
investigate_command,
|
|
onboard,
|
|
auth_command,
|
|
config_command,
|
|
tests,
|
|
integrations,
|
|
guardrails,
|
|
fleet,
|
|
messaging,
|
|
misses_command,
|
|
hermes_command,
|
|
cron_command,
|
|
watchdog_command,
|
|
debug_command,
|
|
gateway_command,
|
|
health_command,
|
|
doctor_command,
|
|
update_command,
|
|
uninstall_command,
|
|
version_command,
|
|
)
|
|
|
|
|
|
def register_commands(cli: click.Group) -> None:
|
|
"""Attach all top-level commands to the root CLI group."""
|
|
for command in _COMMANDS:
|
|
cli.add_command(command)
|