Improved update flow

Using the previously added new API endpoint, the update flow can now skip updates if the latest version is already installed. This also improves the output by making it so update can print the version. Also improved the error handling.
This commit is contained in:
David Dworken
2022-04-16 20:50:02 -07:00
parent 735a98a611
commit 158f08f5c6
4 changed files with 49 additions and 18 deletions

View File

@ -461,6 +461,7 @@ func TestUpdate(t *testing.T) {
// Update
RunInteractiveBashCommands(t, `hishtory update`)
// TODO: assert on the output of ^
// Then check the status command again to confirm the update worked
out = RunInteractiveBashCommands(t, `hishtory status`)