diff --git a/README.md b/README.md index ad8a587..4d8636f 100644 --- a/README.md +++ b/README.md @@ -28,19 +28,47 @@ EOM ``` Usage: jira [-v ...] [-u USER] [-e URI] [-t FILE] fields - jira [-v ...] [-u USER] [-e URI] [-t FILE] ls [--query=JQL] + jira [-v ...] [-u USER] [-e URI] [-t FILE] login + jira [-v ...] [-u USER] [-e URI] [-t FILE] (ls|list) ( [-q JQL] | [-p PROJECT] [-c COMPONENT] [-a ASSIGNEE] [-i ISSUETYPE]) jira [-v ...] [-u USER] [-e URI] [-t FILE] view ISSUE + jira [-v ...] [-u USER] [-e URI] [-t FILE] issuelinktypes + jira [-v ...] [-u USER] [-e URI] [-t FILE] transmeta ISSUE + jira [-v ...] [-u USER] [-e URI] [-t FILE] editmeta ISSUE jira [-v ...] [-u USER] [-e URI] [-t FILE] ISSUE - + jira [-v ...] [-u USER] [-e URI] [-t FILE] edit ISSUE [-o KEY=VAL]... + jira [-v ...] [-u USER] [-e URI] [-t FILE] issuetypes [-p PROJECT] + jira [-v ...] [-u USER] [-e URI] [-t FILE] createmeta [-p PROJECT] [-i ISSUETYPE] + jira [-v ...] [-u USER] [-e URI] [-t FILE] transitions ISSUE + jira [-v ...] [-u USER] [-e URI] [-t FILE] create [-p PROJECT] [-i ISSUETYPE] [-o KEY=VAL]... + jira [-v ...] [-u USER] [-e URI] DUPLICATE dups ISSUE + jira [-v ...] [-u USER] [-e URI] BLOCKER blocks ISSUE + jira [-v ...] [-u USER] [-e URI] watch ISSUE [-w WATCHER] + jira [-v ...] [-u USER] [-e URI] (trans|transition) TRANSITION ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] ack ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] close ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] resolve ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] reopen ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] start ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] stop ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] [-t FILE] comment ISSUE [-m COMMENT] + jira [-v ...] [-u USER] [-e URI] take ISSUE + jira [-v ...] [-u USER] [-e URI] (assign|give) ISSUE ASSIGNEE General Options: - -h --help Show this usage - --version Show this version - -v --verbose Increase output logging - -u --user=USER Username to use for authenticaion (default: cbennett) -e --endpoint=URI URI to use for jira (default: https://jira) - -t --template=FILE Template file to use for output + -h --help Show this usage + -t --template=FILE Template file to use for output/editing + -u --user=USER Username to use for authenticaion (default: cbennett) + -v --verbose Increase output logging + --version Show this version -List options: - -q --query=JQL Jira Query Language expression for the search +Command Options: + -a --assignee=USER Username assigned the issue + -c --component=COMPONENT Component to Search for + -i --issuetype=ISSUETYPE Jira Issue Type (default: Bug) + -m --comment=COMMENT Comment message for transition + -o --override=KEY:VAL Set custom key/value pairs + -p --project=PROJECT Project to Search for + -q --query=JQL Jira Query Language expression for the search + -w --watcher=USER Watcher to add to issue (default: cbennett) ``` \ No newline at end of file diff --git a/jira/main.go b/jira/main.go index 84f022d..d94b3b2 100644 --- a/jira/main.go +++ b/jira/main.go @@ -46,23 +46,22 @@ Usage: jira [-v ...] [-u USER] [-e URI] (assign|give) ISSUE ASSIGNEE General Options: - -h --help Show this usage - --version Show this version - -v --verbose Increase output logging - -u --user=USER Username to use for authenticaion (default: %s) -e --endpoint=URI URI to use for jira (default: https://jira) + -h --help Show this usage -t --template=FILE Template file to use for output/editing + -u --user=USER Username to use for authenticaion (default: %s) + -v --verbose Increase output logging + --version Show this version Command Options: -a --assignee=USER Username assigned the issue - -q --query=JQL Jira Query Language expression for the search -c --component=COMPONENT Component to Search for - -p --project=PROJECT Project to Search for -i --issuetype=ISSUETYPE Jira Issue Type (default: Bug) - -o --override=KEY:VAL Set custom key/value pairs - -w --watcher=USER Watcher to add to issue (default: %s) -m --comment=COMMENT Comment message for transition - + -o --override=KEY:VAL Set custom key/value pairs + -p --project=PROJECT Project to Search for + -q --query=JQL Jira Query Language expression for the search + -w --watcher=USER Watcher to add to issue (default: %s) `, user, user) args, err := docopt.Parse(usage, nil, true, "0.0.1", false, false); if err != nil {