Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pup"
version = "1.27.1"
version = "2.0.0"
edition = "2021"
rust-version = "1.93.1"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
13 changes: 2 additions & 11 deletions src/generated/downtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = 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)]
Expand Down
Loading