chore(deps): update rust crate cli-table to 0.5.0 #210

Merged
lucas merged 2 commits from renovate/cli-table-0.x into master 2025-04-22 00:16:25 +02:00
Showing only changes of commit 72ab8811c3 - Show all commits

View file

@ -227,9 +227,12 @@ pub(crate) async fn run(mut ctx: sdk::Context, matches: &ArgMatches) -> Result<(
let lookup = &ctx.lookup; let lookup = &ctx.lookup;
let rows: Vec<_> = lookup.entries().iter().map(TableRow::from).collect(); let rows: Vec<_> = lookup.entries().iter().map(TableRow::from).collect();
print_stdout(rows.with_title())?; match print_stdout(rows.with_title()) {
Ok(_) => Ok(()),
Ok(()) // Closing stdout prematurely is normal behavior with things like piping into `head`
Err(err) if err.kind() == std::io::ErrorKind::BrokenPipe => Ok(()),
Err(err) => Err(err.into()),
}
} }
_ => unreachable!( _ => unreachable!(
"clap is configured to require a subcommand, and they're all handled above" "clap is configured to require a subcommand, and they're all handled above"