Commit Graph

17 Commits

Author SHA1 Message Date
cf7a8d114a
chore: remove unused prototype code 2021-07-27 19:46:01 +02:00
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
8656ae947a
tests: fix App def to match new struct format
Follows from 01cbee824a.
2021-07-26 19:22:26 +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
All checks were successful
continuous-integration/drone/pr Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-21 12:05:50 +01:00
a36e80db99
fix: fixing domain being required.
All checks were successful
continuous-integration/drone/push Build is passing
Fixes gitea issue #5
2021-07-21 08:38:13 +01:00
16514b3151
feat: implemented type & servers flags in app ls
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-20 13:00:03 +01:00
a60ebf8710
tests: around 60% code coverage for config package
All checks were successful
continuous-integration/drone/push Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-18 10:49:31 +01:00
38f610bdec
feat: abra server ls
All checks were successful
continuous-integration/drone/push Build is passing
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