一个微型命令行新闻阅读器。

只需执行 wnews 命令,它就会为您提供过去几天中最重要的三到四条新闻,这些新闻是由维基百科编辑者汇编的。(请参阅 维基百科主页 的“新闻动态”部分。)

wnews
→ Croatia adopts the euro and also joins the Schengen Area.
  https://en.wikipedia.org/wiki/Croatia_and_the_euro

→ Pope Emeritus Benedict XVI dies at the age of 95.
  https://en.wikipedia.org/wiki/Pope_Benedict_XVI

→ Brazilian footballer Pelé dies at the age of 82.
  https://en.wikipedia.org/wiki/Pel%C3%A9

→ A winter storm causes record-breaking low temperatures and leaves more than 90
  people dead across North America.
  https://en.wikipedia.org/wiki/December_2022_North_American_winter_storm

安装

假设您的 PATH 中包含 dart,请运行以下命令

dart pub global activate wnews

就是这样。现在,您可以从命令行中的任何位置使用 wnews

开发

要在开发过程中使用 wnews,请转到项目根目录,然后运行

dart pub global activate --source path .

之后,您可以通过键入 wnews 来从命令行中的任何位置访问 bin/wnews.dart 中的可执行文件(就像您激活了 pub.dev 上的版本一样)。

GitHub

查看 Github