Commit Graph

42 Commits

Author SHA1 Message Date
decentral1se a93786c6be
fix!: make "app rm" more explicit & simpler
We point users to "app volume/secret remove" for more specific deletion
of other app data resources now. The idea is that if you lose the env
file locally, then you can't clean up anything after. So it is handy to
have a sort of WARNING barrier to deleting that file. This flow is the
only way to get Abra to delete your local env file. It now feels more
documented and sufficiently scary in the UI/UX to merit that. Hopefully
addresses the ticket sufficiently.

Closes coop-cloud/organising#335.
2023-01-23 13:29:46 +01:00
decentral1se 323f4467c8
fix: filtering requires case-by-case handling
See https://github.com/moby/moby/issues/32985.
2022-03-30 16:25:38 +02:00
decentral1se 6aa23a76a1 fix: more precise filtering
Closes coop-cloud/organising#305.
2022-03-27 19:30:36 +00:00
decentral1se f39e186b66
fix: match Force/NoInput where needed 2022-03-12 16:15:20 +01:00
decentral1se 16fc5ee54b
fix: can't force remove if it is already deployed 2022-03-12 16:08:26 +01:00
decentral1se 37a1fcc4af
fix: delete all secrets if force/noinput 2022-03-12 16:01:42 +01:00
decentral1se ce70932a1c
feat: single char short flag for volumes removal 2022-03-12 16:01:14 +01:00
decentral1se d0945aa09d
fix: handle NoInput for app removal 2022-03-11 16:39:20 +01:00
decentral1se e670844b56 refactor!: app name -> domain 2022-01-27 10:33:21 +00:00
decentral1se 0e688f1407
refactor!: migrate to urfave/cli v1
Better flexible flags handling.
2022-01-18 14:38:20 +01:00
decentral1se b22b63c2ba
fix: only output if volumes selected for removal 2022-01-05 19:00:09 +01:00
decentral1se b61b8f0d2a
fix: always check for deployed status when removing
You can't delete regardless of -f if an app is deployed, the runtime
will error out. Best just deal with this for all cases then on our side.
2022-01-04 11:38:07 +01:00
decentral1se 763e7b5bff
fix: use StackName for querying via Docker 2022-01-04 11:37:45 +01:00
decentral1se d5ab9aedbf
docs: match other abort command outputs 2022-01-04 11:37:35 +01:00
decentral1se 2ebb00c9d4
docs: confirm prompt matches language of command 2022-01-04 11:37:04 +01:00
decentral1se 3b5354b2a5
refactor: less quotes 2021-12-25 02:03:09 +01:00
decentral1se 29a4d05944
fix: more info on multiselect
See coop-cloud/organising#265.
2021-12-22 00:07:49 +01:00
decentral1se ae6adace50
refactor: autocomplete package 2021-12-12 00:17:39 +01:00
decentral1se 930c29f4a2
fix: switch order of command 2021-11-26 22:24:55 +01:00
decentral1se 1d6c3e98e4
fix: only query deployed app
Closes coop-cloud/organising#266.
2021-11-26 22:24:41 +01:00
decentral1se dde8afcd43
feat: support version/upgrade listing
Closes coop-cloud/organising#130.
2021-10-08 09:51:47 +02:00
Roxie Gibson 0a1c73bf00
refactor: use cli context vs creating new one 2021-09-16 11:21:38 +01:00
decentral1se 66aeeee768
fix: completion doesn't fail silently now
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
knoflook cf2653fef8
refactor: drop unused function, rename GetAppsNames 2021-09-08 13:43:55 +02:00
knoflook 4c216fdf40
feat: auto-complete app and recipe names 2021-09-07 16:57:39 +02:00
decentral1se 7ed37547a5
docs: add FIXME [ci skip] 2021-09-06 01:51:04 +02:00
decentral1se d4333c2dc0
refactor: use app getting instead of boilerplate 2021-09-05 23:17:35 +02:00
decentral1se ec40d88134
refactor: centralise app name validation 2021-09-05 22:04:48 +02:00
decentral1se cc249e8187
fix: check for deployment of app before removing
Closes coop-cloud/go-abra#61.

Fix thanks to @knoflook!
2021-09-05 21:54:52 +02:00
decentral1se b7742d5e18
refactor: use pkg directory structure 2021-09-05 21:37:03 +02:00
decentral1se 317be4cc01
docs: short aliases [ci skip] 2021-09-05 01:34:56 +02:00
decentral1se 07a43cb314
refactor: NewClientWithContext -> New, and use server only 2021-09-05 00:41:31 +02:00
knoflook 836420e369
docs: add app remove description 2021-09-03 14:22:40 +02:00
knoflook c150856a66
fix: app rm quitting when there are no secrets/volumes to remove 2021-09-02 17:52:42 +02:00
Roxie Gibson 8f9ffa0667
style: correct error formatting ST1005 2021-08-12 14:41:39 +01:00
knoflook cefad74e22
fix: app rm removing secrets and volumes twice 2021-08-12 12:59:11 +02:00
decentral1se a18a9493f2
fix: add missing error handling 2021-08-09 16:17:31 +02:00
decentral1se 36af302d5f
refactor: dangling else, Sprintf formatting, printing 2021-08-06 12:20:14 +02:00
knoflook 6732edf8db
feat: implement app remove
See coop-cloud/go-abra#43.
2021-08-06 12:00:24 +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 30d11f48a7
refactor: break up cli pkg into nice small chunks 2021-08-02 02:10:41 +01:00