feat: implement ping command"

This commit is contained in:
Stevan Freeborn committed 2026-09-04 18:09:25 -05:00
1 parent fb0bbae1f0
commit 8045814b3b
3 files changed
+313 -10

No files matched your search

+10 -1
View File
@@ -1,4 +1,4 @@
use clap::Parser;
use clap::{Parser, Subcommand};
#[derive(Debug, PartialEq, Parser)]
#[command(name = "onx")]
@@ -22,4 +22,13 @@ pub struct Cli {
#[arg(help = "Pretty-print JSON output")]
#[arg(default_value_t = false)]
pub pretty: bool,
#[command(subcommand)]
pub command: Command,
}
#[derive(Debug, PartialEq, Subcommand)]
pub enum Command {
#[command(about = "Check connectivity to the Onspring API")]
Ping,
}