Commit graph

16 commits

Author SHA1 Message Date
Dasio
9289ab99f2 Use var syntax when empty struct is initialized 2020-02-24 22:33:22 +01:00
TaKO8Ki
5c8dd70bb7 fix typo 2020-02-15 23:20:15 +09:00
Mislav Marohnić
a710893fc1 Rename to cli/cli 2020-01-24 16:08:52 +01:00
Mislav Marohnić
b7191e3a6f Simplify case when state.yml is non-existent or corrupt
- non-existent file simply returns an error
- corrupt file (e.g. YAML unmarshal error) also returns an error
- if there were errors, just check for new release normally instead of aborting
2019-12-13 17:04:07 +01:00
Corey Johnson
10ca1e7646 Whitespace cleanup 2019-12-11 16:53:00 -08:00
Corey Johnson
23fdd730e9 Less 🌭 2019-12-11 16:52:16 -08:00
Corey Johnson
9428df4597 Fix tests 2019-12-11 16:48:33 -08:00
Corey Johnson
deac6da2f4 Add state yml 2019-12-11 15:53:46 -08:00
Mislav Marohnić
67f0cf3ce3 Improvements to update notifier
- Only report an update available if the version number of the release
  is greater than the current version

- Removes `command` dependency from `update` package; instead, pass
  current version as an argument

- Remove `brew upgrade` instructions since we can't be certain that gh
  was installed via Homebrew in the first place.

- Does not check for updates unless stderr is a tty

- Preserve stderr color output even if stdout is not a tty

- Fixes stderr color output on Windows
2019-12-04 14:47:27 +01:00
Corey Johnson
f8f0aa829e Only run in prod 2019-12-02 15:57:34 -08:00
Corey Johnson
dc91781214 Works with POST 2019-12-02 15:46:57 -08:00
Corey Johnson
1231ddd01c Add test 2019-12-02 15:08:36 -08:00
Corey Johnson
de98dbd378 Make the "check update" interface a little cleaner 2019-12-02 10:28:00 -08:00
Corey Johnson
d69f58cd6b Add APP_ENV var 2019-11-22 13:48:06 -08:00
Corey Johnson
49d5ada937 use upgrade 2019-11-22 11:05:40 -08:00
Corey Johnson
e95594675d Move to it's own package 2019-11-22 10:55:23 -08:00