MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / print_changelog_entry

Method print_changelog_entry

crates/chat-cli/src/cli/mod.rs:265–285  ·  view source on GitHub ↗
(entry: &feed::Entry)

Source from the content-addressed store, hash-verified

263 }
264
265 fn print_changelog_entry(entry: &feed::Entry) -> Result<()> {
266 println!("Version {} ({})", entry.version, entry.date);
267
268 if entry.changes.is_empty() {
269 println!(" No changes recorded for this version.");
270 } else {
271 for change in &entry.changes {
272 let type_label = match change.change_type.as_str() {
273 "added" => "Added",
274 "fixed" => "Fixed",
275 "changed" => "Changed",
276 other => other,
277 };
278
279 println!(" - {}: {}", type_label, change.description);
280 }
281 }
282
283 println!();
284 Ok(())
285 }
286
287 fn print_version(changelog: Option<String>) -> Result<ExitCode> {
288 // If no changelog is requested, display normal version information

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected