mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-18 20:23:28 +02:00
use password-source-path to allow overriding binary and/or path to binary
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user