mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-06 04:58:30 +02:00
Add in a stanza to the Usage section about tab completion
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
g[](https://gitter.im/go-jira-cli/help?utm_source=badge&utm_medium=badge&utm_content=badge)
|
[](https://gitter.im/go-jira-cli/help?utm_source=badge&utm_medium=badge&utm_content=badge)
|
||||||
[](https://travis-ci.org/Netflix-Skunkworks/go-jira)
|
[](https://travis-ci.org/Netflix-Skunkworks/go-jira)
|
||||||
[](https://godoc.org/gopkg.in/Netflix-Skunkworks/go-jira.v1)
|
[](https://godoc.org/gopkg.in/Netflix-Skunkworks/go-jira.v1)
|
||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
@@ -31,6 +31,7 @@ g[
|
* [keyring password source](#keyring-password-source)
|
||||||
* [pass password source](#pass-password-source)
|
* [pass password source](#pass-password-source)
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
|
* [TAB completion](#tab-completion)
|
||||||
|
|
||||||
# go-jira
|
# go-jira
|
||||||
simple command line client for Atlassian's Jira service written in Go
|
simple command line client for Atlassian's Jira service written in Go
|
||||||
@@ -517,3 +518,16 @@ Commands:
|
|||||||
worklog list: Prints the worklog data for given issue
|
worklog list: Prints the worklog data for given issue
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Setting up TAB completion
|
||||||
|
|
||||||
|
Since go-jira is build with the "kingpin" golang command line library we supports bash/zsh shell completion automatically:
|
||||||
|
|
||||||
|
* <https://github.com/alecthomas/kingpin/tree/v2.2.5#bashzsh-shell-completion>
|
||||||
|
|
||||||
|
For example, in bash, adding something along the lines of:
|
||||||
|
|
||||||
|
`eval "$(jira --completion-script-bash)"`
|
||||||
|
|
||||||
|
to your bashrc, or .profile (assuming go-jira binary is already in your path) will cause jira to offer tab completion behavior.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user