Closed amtoine closed 1 year ago
I like every feature you proposed!
Maybe you could also address the problem of the script can't being run from ./scripts
? even if the current check is fine :+1:
Just a slight proposal maybe:
- bash> ./scripts/gpg-share.sh -u "first user" -u "user" -u "last one" -U users.txt
+ bash> ./scripts/gpg-share.sh -u "first user" "user" "last one" -U users.txt
?
I like every feature you proposed!
coool :yum:
Maybe you could also address the problem of the script can't being run from
./scripts
? even if the current check is fine +1i might have a look into this, but will not be the primary focus of the PR :+1:
Just a slight proposal maybe:
- bash> ./scripts/gpg-share.sh -u "first user" -u "user" -u "last one" -U users.txt + bash> ./scripts/gpg-share.sh -u "first user" "user" "last one" -U users.txt
?
yup what about allowing both? i'm just worried about
"first user" "user" "last one"
being treated bybash
as"first user user last one"
or"first" "user" "user" "last" "one"
:thinking:
i might have a look into this, but will not be the primary focus of the PR +1
ofc :+1:
what about allowing both?
yeah absolutely!
i'm just worried about "first user" "user" "last one" being treated by bash as "first user user last one" or "first" "user" "user" "last" "one" thinking
actually we'll see but at worst we'll forbid multi words username in command line parameters :+1:
actually we'll see but at worst we'll forbid multi words username in command line parameters +1
perfect :ok_hand:
as introduced in #29, a new script has been added to the source to easily share the environment secrets with other developers using
pgp
keys and archives.the current script
the script is used as follows:
or, when multi-words users have to be used or to save the list of people in a file
with the following users
this is arguably not the best experience...
idea of feature
during the review of #29, an idea has been introduced: using flags
--user (-u)
flag to add one user from the standard input--users (-U)
flag to add additional users from a filethis will lead to the following usage:
or
much better isn't it? :yum:
we could also add
--help (-h)
to see the help of the script and why not--check-keyring (-k)
to check to keyring of the user calling the script and make sure everything is ok :ok_hand: