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

Allow get to optionally receive one argument, and print only that field #61

Open
stdedos opened this issue Nov 30, 2022 · 2 comments
Open

Comments

@stdedos
Copy link

stdedos commented Nov 30, 2022

$ git-credential-keepassxc --unlock 20 get password
passw0rd
$ git-credential-keepassxc --unlock 20 get username
root

Use case:

  • I'd want to apply "separation of concerns" to a program that I am running. I want to pass one command, and tell to the program "if you run this, you will get the password".
  • I'd like to allow users to be able to plug their own credential-solution, and
  • "myself" internalizing per-credential-manager solution seems infeasible

Workarounds considered:
... I think for now I'll write a shell script that does that, I guess. I'd prefer wouldn't have to do that, though.

@Frederick888
Copy link
Owner

This is much too niche imo, and really it can't be easier with some basic bash:

printf 'url=xxx' | git-credential-keepassxc get --json | jq -r '.username'
printf 'url=xxx' | git-credential-keepassxc get --json | jq -r '.password'

I see little value embedding it in git-credential-keepassxc I'm afraid.

@stdedos
Copy link
Author

stdedos commented Nov 30, 2022

Thought so. I just thought I'd leave it here if "this gets enough attention".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants