timvisee / prs

🔐 A secure, fast & convenient password manager CLI using GPG and git to sync.
https://gitlab.com/timvisee/prs
GNU General Public License v3.0
216 stars 8 forks source link

prs generate - not sure why it needs a name #25

Closed colemickens closed 1 year ago

colemickens commented 1 year ago

I'm just looking for a quick secure ephemeral password.

What is the meaning of passing a name, without calling --store?

colemickens commented 1 year ago

Oh, I'm silly, --store is to pass an alternative password store location.

Do you think it makes sense to have another subcommand, or overload this one so that it just generates without any attempt to save if no name is provided? It could even emit a warning, I suppose?

timvisee commented 1 year ago

prs works with your store by default, so generate tries to put it in the store by default. --store is only to provide a store that is different than the default.

You can generate a password without storing it as secret by providing --stdout:

$ prs generate --stdout
*fF(49TVrW>Y7uAT]>)[A/u6
colemickens commented 1 year ago

:pray: thank you!