abra/cli
decentral1se 1f6c0e8c4b
continuous-integration/drone/pr Build is passing Details
feat: support local apps.json loading
This logic supports the following cases:

- Download a fresh apps.json and load it if missing
- Check if a local apps.json is old and get a fresh one if so
- Always save a local copy after downloading a fresh apps.json

The http.Head() call is faster than a http.Get() call (only carries back
respones headers) and aims to make the more general case more
performant: you have the latest copy of the apps.json and don't need to
download another one. This a direct port of our Bash implementation
logic.

Closes https://git.autonomic.zone/coop-cloud/go-abra/issues/9.
2021-07-21 22:42:51 +02:00
..
app.go refactor: moved all fatal errors to logrus 2021-07-21 09:04:34 +01:00
cli.go Revert "style: add missing type marker" 2021-07-21 13:32:16 +02:00
common.go refactor: Moved table function to fornatter 2021-07-18 03:24:48 +01:00
formatter.go refactor: Moved table function to fornatter 2021-07-18 03:24:48 +01:00
recipe.go feat: support local apps.json loading 2021-07-21 22:42:51 +02:00
server.go docs: use hyphen shortname and trim message 2021-07-21 00:19:06 +02:00
version.go feat: add version command 2021-07-20 23:59:47 +02:00