Skip to content

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

Open
@stdedos

Description

$ 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.

Activity

Frederick888

Frederick888 commented on Nov 30, 2022

@Frederick888
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

stdedos commented on Nov 30, 2022

@stdedos
Author

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Allow `get` to optionally receive one argument, and print only that field · Issue #61 · Frederick888/git-credential-keepassxc