collie-cli icon indicating copy to clipboard operation
collie-cli copied to clipboard

Inform users about new Collie releases

Open Jelledb opened this issue 4 years ago • 1 comments

To make users aware that a new Collie release is available with e.g. an important bug fix or a new exciting feature, we need some kind of system that can notify those users.

Implementation Hint: It seems that Cliffy has some kind of support for upgrading CLIs: https://cliffy.io/command/#%E2%9D%AF-upgrade-command

Jelledb avatar Jun 25 '21 12:06 Jelledb

I did not fully understand how this works but it seems it works like checking out the repository and pushing that files then into deno runtime. This will fail on normal installations as this probably wont download the binary.

However we could implement a check for new releases which periodically queries github and if a new release is there informs the user to install it.

tfelix avatar Aug 04 '21 08:08 tfelix

We now have support for collie upgrade command and users can list available version with collie upgrade -l (when installed via deno install).

I'd consider that good enough for now, as the alternative is that collie needs to check for new versions with a network call. That has user consent issues wrt. telemetry etc. so for now I'd consider having an explicit command that users call good enough.

Sidenote: a tool that does proactive version checks and prominently features it in command output is pip (python package manager)

JohannesRudolph avatar Sep 13 '22 09:09 JohannesRudolph