use password-source-path to allow overriding binary and/or path to binary

This commit is contained in:
Cory Bennett
2019-12-01 20:27:00 -08:00
parent e26fbfcb14
commit d6173ce77d
3 changed files with 18 additions and 23 deletions
+5 -5
View File
@@ -375,18 +375,18 @@ When `password-source` is set to `stdin`, the `jira login` command will read fro
$ ./password-generator | jira login --endpoint=https://my.jira.endpoint.com --user=USERNAME
```
#### Switch binary used for password source
For `gopass` and `pass` it is possible to switch the binary used for retrieval of the password. This can be accomplised
by setting the `password-source-binary` option in the configuration file.
#### Switch path used for password source
For `gopass` and `pass` it is possible to specify the full path for the `password-source` tool used for retrieval of the password. This can be accomplised
by setting the `password-source-path` option in the configuration file.
E.g.
```yaml
password-source: gopass
password-name: jira.example.com/myuser
password-source-binary: my-special-gopass
password-source-path: /path/to/my-special-gopass
```
This will cause go-jira to use the `gopass` style cli interaction with the `my-special-gopass` binary.
If you ommit the `password-source-binary` option, either `gopass` (for `gopass`) or `pass` (for `pass`)
If you ommit the `password-source-path` option, either `gopass` (for `gopass`) or `pass` (for `pass`)
will be used.