diff --git a/Cargo.lock b/Cargo.lock index 3d216ada..18178990 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3418,7 +3418,7 @@ dependencies = [ [[package]] name = "pup" -version = "1.27.1" +version = "2.0.0" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 7f10fcc4..b8243f74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pup" -version = "1.27.1" +version = "2.0.0" edition = "2021" rust-version = "1.93.1" publish = false diff --git a/plugin.json b/plugin.json index 7e980b35..5746d0f2 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "pup", - "version": "1.27.1", + "version": "2.0.0", "description": "Datadog API CLI with 49 command groups, 300+ subcommands. Skills and domain agents for monitoring, logs, APM, security, and infrastructure.", "author": { "name": "Datadog", diff --git a/src/generated/downtime.rs b/src/generated/downtime.rs index 81b808e6..a4646235 100644 --- a/src/generated/downtime.rs +++ b/src/generated/downtime.rs @@ -165,21 +165,12 @@ pub async fn list( .await .map_err(|e| anyhow::anyhow!("failed to list_downtimes: {:?}", e))?; let count = resp.data.as_ref().map_or(0, |d| d.len()); - let truncated = false; - let next_action: Option = None; let meta = formatter::Metadata { count: Some(count), - truncated, command: Some("downtime list".to_string()), - next_action, + ..Default::default() }; - formatter::format_and_print( - &resp, - &cfg.output_format, - cfg.agent_mode, - Some(&meta), - cfg.jq.as_deref(), - ) + formatter::output_with_meta(cfg, &resp, &meta) } #[cfg(test)]