Skip to content

Commit

Permalink
Add details regarding input format
Browse files Browse the repository at this point in the history
Closes #40.
  • Loading branch information
Frederick888 committed May 31, 2022
1 parent 9134629 commit fd9b12b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,17 @@ Although currently it's not possible to return entries only from the Git group,

## Scripting

`git-credential-keepassxc` can also help manage credentials in shell scripts. For instance, to connect to a Remote Desktop service:
`git-credential-keepassxc` can also help manage credentials in shell scripts. You can send a request via standard input in [git-credential input/output format](https://git-scm.com/docs/git-credential#IOFMT) then process the response.

Currently accepted fields in input (unknown fields are ignored):

- `url`
- `username`
- `password` (`store` requests only)

Responses are in the same format. Alternatively `get` and `store` responses can also be formatted in JSON by providing `--json` argument.

For instance, to connect to a Remote Desktop service:

```sh
#!/usr/bin/env bash
Expand Down

0 comments on commit fd9b12b

Please sign in to comment.