mrjones2014 / ctrlg

A command line context switcher, written in Rust :crab:
https://crates.io/crates/ctrlg
MIT License
30 stars 1 forks source link

[Feature]: Update checking and self updates #40

Closed mrjones2014 closed 2 years ago

mrjones2014 commented 2 years ago

Similar Issues

Description

Implement the CLI itself checking for updates and the ability for it to update itself.

https://github.com/jaemk/self_update

Use Case

Currently the only way people would know there is an update available is by checking here or via Cargo. It would be cool to print a message or something notifying that the user is able to run ctrlg update to update the CLI (ctrlg update not implemented yet).

mrjones2014 commented 2 years ago

Now that we have the install script, we could just add update checking, and if an update is available, figure out if ctrlg is installed via cargo or the install script, and output a help message with instructions on how to update with one or the other.