Skip to content

CLI: add 'aimdb instance ping' subcommand #95

@lxsaah

Description

@lxsaah

Difficulty: medium · Estimate: 3–4 hours

The CLI has instance, record, graph, watch, generate subcommands. A ping subcommand that connects to a remote AimDB instance via the existing AimX protocol and reports connectivity + RTT would be a great quick-check for users wiring up remote access. Self-contained scope.

Where to look

What to do

  • Add Ping { url: String, count: Option<u32> } to the instance subcommand enum.
  • Implement: open the AimX session, send a no-op request, measure RTT, repeat count times (default 1), print min/avg/max.
  • Print results in both human and --json form.

Done when

  • aimdb instance ping <url> prints RTT info
  • Includes a test of the args parsing
  • Behaves cleanly on a closed/unreachable port (clear error, non-zero exit)

We'd love help with this — comment if you'd like to take it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions