Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit option to display only password #438

Closed
mumblez opened this issue Nov 2, 2017 · 2 comments
Closed

Explicit option to display only password #438

mumblez opened this issue Nov 2, 2017 · 2 comments
Assignees
Labels
feature Enhancements and new features

Comments

@mumblez
Copy link

mumblez commented Nov 2, 2017

Just like passing the -c allows copying only the 1st line to the clipboard, can we have a way to explicitly only show the password as an enhancement request.

I like to add extra metadata e.g.

somepass123
---
project: someproject
region: someregion
...

and to use for scripting purposes I'd like to just extract the password.
I know I can use head -n1 but it would be a little cleaner to just pull out the password like we can pull out the other yaml fields, e.g.

gopass entry project
gopass entry region
gopass -c entry # copies just password to clipboard

As a possible suggestion
gopass show -o entry # to show ONLY the password
or
gopass show -a entry # inversely, require -a to show all yml fields and default to only showing password, might be unpopular

@dominikschulz dominikschulz self-assigned this Nov 2, 2017
@dominikschulz dominikschulz added the feature Enhancements and new features label Nov 2, 2017
@dominikschulz
Copy link
Member

Yes, of course. Let me just give the UX some thought. Once we settle on a good workflow this is super easy to implement.

dominikschulz added a commit to dominikschulz/gopass that referenced this issue Nov 10, 2017
dominikschulz added a commit that referenced this issue Nov 10, 2017
@mumblez
Copy link
Author

mumblez commented Nov 11, 2017

awesome

kpitt pushed a commit to kpitt/gopass that referenced this issue Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Enhancements and new features
Projects
None yet
Development

No branches or pull requests

2 participants