Closed camerondurham closed 2 years ago
Resolving for now. Additional implementation to do self-download is not something I have time to safely implement and providing upgrade command is convenient enough for users. If someone disagrees, please comment, re-open, or create new issue.
Is your feature request related to a problem? Please describe. When a new version is released, user has to find this repo and follow instructions in the README. Instructions to upgrade should be clear from the CLI when it says a new version is released.
Describe the solution you'd like
Add a command (i.e.
ch upgrade
) that automatically upgrades the CLI by downloading the latest binary and replacing the existing file. This should be safe on all OS's since the OS should manually load the binary into memory and it wouldn't matter if process binary is replaced.Describe alternatives you've considered
Print out the link to the repository instructions on how to upgrade, or print specific terminal commands to run to upgrade depending on if it's running in Windows or Unix (WSL2, macOS, normal Linux).
Additional context
n/a?