cli + misc build stuff. Yes im testing in prod.

This commit is contained in:
lda
2026-04-30 15:46:09 +07:00 Verified
parent 7728910149
commit eb83feaf97
12 changed files with 370 additions and 29 deletions
+5 -5
View File
@@ -46,7 +46,7 @@ pub struct LeasesArgs {
)]
pub include_state: bool,
/// Print machine-readable JSON instead of a table.
#[arg(long)]
#[arg(long, short)]
pub json: bool,
}
@@ -70,7 +70,7 @@ pub struct WakeArgs {
#[arg(long)]
pub ip: Option<IpAddr>,
/// Print machine-readable JSON instead of a table.
#[arg(long)]
#[arg(short, long)]
pub json: bool,
}
@@ -100,7 +100,7 @@ pub struct InventoryArgs {
#[arg(long = "mac")]
pub macs: Vec<macaddr::MacAddr>,
/// Print machine-readable JSON instead of a table.
#[arg(long)]
#[arg(short, long)]
pub json: bool,
}
@@ -114,10 +114,10 @@ pub struct DevsArgs {
/// Optional interface name to show.
pub dev: Option<String>,
/// Show only interfaces whose operstate is `up`.
#[arg(long)]
#[arg(short, long)]
pub up: bool,
/// Print machine-readable JSON instead of a table.
#[arg(long)]
#[arg(short, long)]
pub json: bool,
}