gleam-lang/gleam

Improve output of outdated dependency command

已關閉

#5,573 建立於 2026年4月6日

 (3 則留言) (0 個反應) (0 位負責人)Rust (960 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (21,417 顆星)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

In the discussion linked below, we came up with an improvement to the output of the gleam deps outdated command.

We would have 1 line stating how many outdated packages were found, a new line and then the table (if outdated packges > 0). For example:

$ gleam deps outdated
1 out of 12 packages have newer versions available.

Package       Current  Latest
-------       -------  ------
gleam_stdlib  0.70.0   0.71.0
$ gleam deps outdated
0 out of 12 packages have newer versions available.

The goal of this design is for the case of no outdated dependencies to not be silent (no output), while for other tools, that rely on this command, to still output something that is parsable in an easy manner.

Reference discussion: https://github.com/gleam-lang/gleam/discussions/5484


Edit: use '# of # packages have newer versions available' for the message

貢獻者指南