Commit Graph

40 Commits

Author SHA1 Message Date
Rich M d21c35965d fix: add warning for long secret names (!359)
continuous-integration/drone/push Build is passing Details
A start of a fix for coop-cloud/organising#463
Putting some code out to start a discussion.  I've added a linting rule for recipes to establish a general principal but I want to put some validation into cli/app/new.go as that's the point we have both the recipe and the domain and can say for sure whether or not the secret names lengths cause a problem but that will have to wait for a bit.  Let me know if I've missed the mark somewhere

Reviewed-on: #359
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
Co-authored-by: Rich M <r.p.makepeace@gmail.com>
Co-committed-by: Rich M <r.p.makepeace@gmail.com>
2024-04-06 21:41:37 +00:00
p4u1 0a3624c15b feat: add version input to abra app new (!400)
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#519

Reviewed-on: #400
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net>
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
2024-01-19 15:08:41 +00:00
test 99e3ed416f fix: secret name generation when secretId is not part of the secret name
continuous-integration/drone/push Build is passing Details
2023-12-04 21:52:09 +00:00
p4u1 3957b7c965 proper env modifiers support
continuous-integration/drone/push Build is passing Details
This implements proper modifier support in the env file using this new fork of the godotenv library. The modifier implementation is quite basic for but can be improved later if needed. See this commit for the actual implementation.

Because we are now using proper modifer parsing, it does not affect the parsing of value, so this is possible again:
```
MY_VAR="#foo"
```
Closes coop-cloud/organising#535
2023-12-01 11:03:52 +00:00
decentral1se c249c6ae9c
fix: fix: trim comments that are not modifers
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#505
2023-10-09 14:42:05 +02:00
decentral1se d02f659bf8
fix: secrets from config, --offline/chaos handling, typos
See coop-cloud/organising#464
2023-09-25 10:31:59 +02:00
decentral1se 0be532692d
test: moar integration tests [ci skip]
continuous-integration/drone/pr Build is failing Details
2023-09-20 13:51:06 +02:00
decentral1se 64cfdae6b7 fix: only load client if creating secrets 2023-09-05 09:58:13 +00:00
decentral1se 23f5745cb8
fix: skip recipe clone / up to date sync for some commands
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
Continues work of 3dc5662821.
2023-08-01 21:19:20 +02:00
decentral1se 3dc5662821
fix: improved offline support
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#471.
2023-07-26 08:16:07 +02:00
decentral1se 3b8893502a
docs: re-word on docstrings [ci skip] 2022-05-13 16:44:49 +02:00
decentral1se e670844b56 refactor!: app name -> domain 2022-01-27 10:33:21 +00:00
decentral1se 0e688f1407
refactor!: migrate to urfave/cli v1
continuous-integration/drone/push Build is passing Details
Better flexible flags handling.
2022-01-18 14:38:20 +01:00
decentral1se ae6adace50
refactor: autocomplete package
continuous-integration/drone/push Build is passing Details
2021-12-12 00:17:39 +01:00
decentral1se 7d8e2d9dd1
WIP: make "abra app new" callable by code
continuous-integration/drone/push Build is passing Details
Part of coop-cloud/organising#212.
2021-11-03 09:10:13 +01:00
decentral1se ab02c5f0dd
feat: support better domain defaults
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#221.
2021-11-02 14:44:16 +01:00
decentral1se 9f9248b987
feat: select prompt for recipes on app new 2021-10-22 08:21:46 +02:00
decentral1se c1390f232e
fix: show "local" instead of "default" 2021-10-17 23:50:12 +02:00
decentral1se 6f43778691
fix: better UI/UX for app creation
continuous-integration/drone/push Build is failing Details
Closes coop-cloud/organising#145.
2021-09-22 08:59:00 +02:00
decentral1se 9783563fa6
fix: drop version checking while churning 2021-09-22 08:47:49 +02:00
decentral1se fdd46a4d98
chore: run formatter
continuous-integration/drone/push Build is passing Details
2021-09-17 07:38:38 +02:00
3wc 754fe81e01 feat: add templating during `.. app new`
continuous-integration/drone/push Build is failing Details
Closes coop-cloud/organising#168
2021-09-16 15:09:35 +02:00
decentral1se f87aad4688
fix: list all servers
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#166.
2021-09-16 09:26:12 +02:00
decentral1se 66aeeee768
fix: completion doesn't fail silently now
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#161.
2021-09-16 08:45:38 +02:00
decentral1se 9fcdc45851
feat: debug logging
Closes coop-cloud/organising#164.
2021-09-11 11:45:26 +02:00
decentral1se 3c3d8dc0e7
WIP: add first run at app rollback command
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#146.
2021-09-10 11:49:29 +02:00
decentral1se 855e9ea26d
fix: dont output secrets table if nothing there
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#162.
2021-09-10 10:36:46 +02:00
decentral1se 50d663ff6e
fix: use correct var for storing server var
See coop-cloud/organising#162.
2021-09-10 10:36:39 +02:00
decentral1se 39ad6e8aa8
fix: use recipeName instead of recipe.Name
This provides a correctly formatted recipe name for machine reading
(i.e. with `-` and such) instead of the more human readable version
(i.e. with spaces).

Closes coop-cloud/organising#162.
2021-09-10 09:56:58 +02:00
knoflook 4c216fdf40
feat: auto-complete app and recipe names
continuous-integration/drone/pr Build is passing Details
2021-09-07 16:57:39 +02:00
decentral1se b477bf8ece
fix: get app new working again 2021-09-07 08:12:37 +02:00
decentral1se 8aaedee39e
fix: use new RecipeMeta struct
continuous-integration/drone/push Build is passing Details
2021-09-06 12:24:23 +02:00
decentral1se b7742d5e18
refactor: use pkg directory structure 2021-09-05 21:37:03 +02:00
decentral1se c99f0fc908
refactor: recipe validation
continuous-integration/drone/push Build is passing Details
2021-09-05 01:55:10 +02:00
decentral1se 317be4cc01
docs: short aliases [ci skip] 2021-09-05 01:34:56 +02:00
decentral1se ff21237a21
refactor: clear up app/recipe usage
continuous-integration/drone/push Build is passing Details
See coop-cloud/go-abra#36.
2021-09-05 00:14:27 +02:00
Roxie Gibson 38d8b51bd5
refactor: moved a lot of flags & added comments
Comments added to fix the golint errors on exported things need comments
2021-08-02 07:36:35 +01:00
Roxie Gibson bb1eb372ef
refactor: stack func to client, mv app to new file
Stack interaction is now under client.

App types and functions moved from env to app under config
2021-08-02 05:51:58 +01:00
Roxie Gibson a3f574a8fa
refactor: app new cmd to be easier to read 2021-08-02 04:18:20 +01:00
Roxie Gibson 30d11f48a7
refactor: break up cli pkg into nice small chunks 2021-08-02 02:10:41 +01:00