Merge app secret auto functionality into app secret generate? #58

Closed
opened 2020-12-30 10:39:56 +00:00 by decentral1se · 2 comments
Owner

What we have now:

abra [options] app <domain> secret auto [--pass]
abra [options] app <domain> secret generate <secret> <version> [<cmd>] [--pass]

Maybe we could do something like? And drop auto and merge it in here.

abra [options] app <domain> secret generate [--secret] [--version] [<cmd>] [--pass]

So abra app secret generate by default will do the auto functionality. And if you want to handle a specific secret/version, you pass -s foo -v v1 and get it done that way.

Whatcha think?

What we have now: ``` abra [options] app <domain> secret auto [--pass] abra [options] app <domain> secret generate <secret> <version> [<cmd>] [--pass] ``` Maybe we could do something like? And drop `auto` and merge it in here. ``` abra [options] app <domain> secret generate [--secret] [--version] [<cmd>] [--pass] ``` So `abra app secret generate` by default will do the `auto` functionality. And if you want to handle a specific secret/version, you pass `-s foo -v v1` and get it done that way. Whatcha think?
decentral1se added the
question
design
breaking-change
labels 2020-12-30 10:39:56 +00:00
Owner

Sounds A+, let's do it

Sounds A+, let's do it
decentral1se removed the
question
label 2020-12-30 21:43:25 +00:00
decentral1se self-assigned this 2020-12-30 21:43:32 +00:00
Author
Owner

Oh, I realised there was a nice setup on abra secret rm so I will match:

  abra [options] app <app> secret generate (<secret> <version>|--all) [<cmd>] [--pass]
  abra [options] app <app> secret insert <secret> <version> <data> [--pass]
  abra [options] app <app> secret (delete|rm) (<secret>|--all) [--pass] [--force]

So abra app app1 secret generate --all matches abra app app1 secret rm --all.

Oh, I realised there was a nice setup on `abra secret rm` so I will match: ``` abra [options] app <app> secret generate (<secret> <version>|--all) [<cmd>] [--pass] abra [options] app <app> secret insert <secret> <version> <data> [--pass] abra [options] app <app> secret (delete|rm) (<secret>|--all) [--pass] [--force] ``` So `abra app app1 secret generate --all` matches `abra app app1 secret rm --all`.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#58
No description provided.