Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

the CLI should notice when it's out of dart and print out the command to do the update #16

Closed csells closed 1 year ago

csells commented 1 year ago

The shock CLI currently doesn't notice when it's out of date. It should check it's build number via the build_version package and then check that against the currently available version to using the pub_updater package to print a message, e.g.

static_shock_cli update available: 0.0.1 -> 0.7.11. run "shock update" to get the latest version.

The Keeping the CLI up to date section of the Generate a Dart CLI with Very Good CLI blog post provides more details.