Commit Graph

10 Commits

Author SHA1 Message Date
decentral1se 1f6c0e8c4b
feat: support local apps.json loading
continuous-integration/drone/pr Build is passing Details
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 #9.
2021-07-21 22:42:51 +02:00
Roxie Gibson 0242dfcb0f
fix: multiline vars can now be read using fork
continuous-integration/drone/push Build is passing Details
2021-07-21 12:05:50 +01:00
Roxie Gibson a36e80db99
fix: fixing domain being required.
continuous-integration/drone/push Build is passing Details
Fixes gitea issue #5
2021-07-21 08:38:13 +01:00
Roxie Gibson 16514b3151
feat: implemented type & servers flags in `app ls`
continuous-integration/drone/push Build is passing Details
2021-07-20 13:00:03 +01:00
Roxie Gibson a60ebf8710
tests: around 60% code coverage for config package
continuous-integration/drone/push Build is passing Details
2021-07-19 14:36:00 +01:00
Roxie Gibson cfe2f70151
refactor: moving logging to command functions
easier to unit test our util commands like this
2021-07-19 12:47:46 +01:00
Roxie Gibson bd9bc530d1
faet: a draft version of the app ls command
continuous-integration/drone/push Build is passing Details
2021-07-19 08:37:00 +01:00
Roxie Gibson f7059dbe98
refactor: filesystem io 2021-07-19 07:04:37 +01:00
Roxie Gibson 6caa176308
WIP: Enviroment file loading and config management
continuous-integration/drone/push Build is passing Details
2021-07-18 10:49:31 +01:00
Roxie Gibson 38f610bdec
feat: abra server ls
continuous-integration/drone/push Build is passing Details
WE DID IT! The first actual command to be ported.

Code is still a mess in terms of UX but its a milestone!
2021-07-18 04:21:26 +01:00