gleam-lang/gleam

Improve output of outdated dependency command

Open

#5,573 创建于 2026年4月6日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Rust (21,417 star) (960 fork)batch import
good first issuehelp wanted

描述

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

贡献者指南