Commit Graph

15 Commits

Author SHA1 Message Date
ef1591d596 WIP: app status listing using concurrency
This being my first time using goroutines, it is pretty messy but the
idea has been shown to be workable! We can concurrently look up multiple
contexts for a much faster response time especially when using multiple
servers.

Remaining TODOs are:

- [ ] Get proper status reporting (deployed/inactive/unknown)
- [ ] Error handling (especially when missing contexts)
- [ ] Refactor and tidy
2021-07-27 12:52:09 +02:00
3bc612c44e WIP: status lookup for apps listing 2021-07-26 20:59:17 +02:00
5def18a9af fix: sort by server and type for app listing 2021-07-26 19:47:44 +02:00
01cbee824a WIP: app list command sorting 2021-07-26 18:23:28 +02:00
359b07b562 WIP: recipe create 2021-07-25 00:07:35 +02:00
1f6c0e8c4b 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
0242dfcb0f fix: multiline vars can now be read using fork 2021-07-21 12:05:50 +01:00
a36e80db99 fix: fixing domain being required.
Fixes gitea issue #5
2021-07-21 08:38:13 +01:00
16514b3151 feat: implemented type & servers flags in app ls 2021-07-20 13:00:03 +01:00
a60ebf8710 tests: around 60% code coverage for config package 2021-07-19 14:36:00 +01:00
cfe2f70151 refactor: moving logging to command functions
easier to unit test our util commands like this
2021-07-19 12:47:46 +01:00
bd9bc530d1 faet: a draft version of the app ls command 2021-07-19 08:37:00 +01:00
f7059dbe98 refactor: filesystem io 2021-07-19 07:04:37 +01:00
6caa176308 WIP: Enviroment file loading and config management 2021-07-18 10:49:31 +01:00
38f610bdec feat: abra server ls
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