Mike Pountney
27f57b2bbe
Switch over to using github.com/go-jira/jira, from gopkg.in
...
There should be no reason to use gopkg.in versioned imports now that
we're using go modules. I think, IANAE.
gopkg.in kind of gets in the way of modules, as it only pulls over
tagged releases from github.com -- this then means that you need to use
go modules 'replace' syntax in the go.mod to use a non-versioned commit
or branch. This is feasible, but kind of ugly.
go modules defaults to pulling the latest version, so the default
behavior is the same as when pulling go-jira.v1 from gopkg.in.
2019-09-14 21:31:11 -07:00
Matthias Bethke
43e07f1197
fix worklog template to allow multiline comments
2019-07-05 09:07:09 +02:00
Justin Ko
225e1dcc05
Allow reading password from stdin
...
Allow reading password from stdin in `jira login`. This is useful for
combining the jira tool with other command-line utilities.
2019-06-05 14:08:09 -07:00
Daniel Martí
31c113d1ba
all: unindent some code
2019-05-28 11:01:51 +01:00
Daniel Martí
9b9186f7d4
start making staticcheck happier
2019-05-27 10:49:15 +01:00
Cory Bennett
c9a4e30606
[ #192 ] fix template usage for 'fixVersions' in transition template
2018-07-29 13:24:19 -07:00
Cory Bennett
ef9b731bac
move HandleExit to the jiracli package
2018-07-28 17:21:18 -07:00
Cory Bennett
d16bcc2f51
udpate deps
2018-07-28 16:29:51 -07:00
Cory Bennett
07ba74b34a
udpate for figtree api changes
2018-07-28 15:50:13 -07:00
Cory Bennett
213a7e04af
[ #171 ] change proposed PasswordPath to PasswordName
2018-05-25 21:50:28 -07:00
dvogt23
fa01ff5c46
add pass path to config
2018-04-27 12:09:53 +02:00
Cory Bennett
d787ac030c
[ #166 ] fix issue when editing templates specified with full path
2018-04-15 17:40:22 -07:00
Cory Bennett
e639cce9af
[ #160 ] prompt when api-token is invalid to get new token
2018-04-15 15:30:30 -07:00
Cory Bennett
06b26c9e00
[ #157 ] add password-directory: path to allow overriding PASSWORD_STORE_DIR from configs
2018-04-15 13:56:37 -07:00
Cory Bennett
359bec2fdf
[ #159 ] fix slice bounds out of range error in abbrev template function
2018-04-01 11:47:23 -07:00
Cory Bennett
79c83f6911
[ #158 ] always print usage to stdout
2018-04-01 11:31:09 -07:00
coryb
18a687e78a
Merge pull request #152 from catskul/fix-missing-priority
...
prevent crash if priority is not set
2018-03-08 13:47:02 -08:00
Cory Bennett
edb06621f8
[ #148 ] [ #149 ] add support for api token based authentication
2018-03-08 10:58:04 -08:00
Andrew Somerville
fd30bc1392
prevent crash if priority is not set
2018-03-07 16:59:47 -05:00
Cory Bennett
0d7c1a7931
refactor to simplify main
2018-03-06 22:34:49 -08:00
Cory Bennett
8c7ca383f6
[ #139 ] add shellquote and toMinJson template functions
2018-01-07 10:49:00 -08:00
Cory Bennett
042bc48649
[ #131 ] fix parsing global options before command execution (allow unixproxy/socksproxy to be set in config.yml)
2017-11-04 15:26:27 -07:00
onionjake
ff985f910b
add support for using socks proxy
2017-11-02 14:30:19 -06:00
Dirk Heilig
d3e294e1ce
add regexReplace template function
2017-10-19 14:58:11 +02:00
Cory Bennett
4d74554300
add {{env.VARNAME}} template support to allow use of env vars
2017-10-03 18:47:33 -04:00
Cory Bennett
986cc78ed5
[ #115 ] fix transition template for description
2017-09-26 22:49:40 -07:00
Cory Bennett
3913726991
update edit command to set queryFields on search to match what is used in template
2017-09-19 00:27:11 -07:00
Cory Bennett
0ba8aa035b
fix edit with query loop, allow continuation when not submitting previous issue
2017-09-18 14:45:21 -07:00
Cory Bennett
098eb99ed6
fix edit when priority is not set
2017-09-18 14:45:04 -07:00
Cory Bennett
a8eaa97de1
fix named query template expansion
2017-09-17 20:31:14 -07:00
Cory Bennett
c9d8dfbe55
[ #102 ] add issuetype into the default queryfields and add it to the default table list template
2017-09-17 15:49:05 -07:00
Cory Bennett
66eb7bff38
[ #100 ] add support for posting, fetching, listing and removing attachments
2017-09-17 15:18:06 -07:00
Cory Bennett
893454fc69
[ #87 ] add various commands for interacting with epics
2017-09-15 00:28:56 -07:00
Cory Bennett
fb43753c31
[ #99 ] add support for named queries to be stored in configs
2017-09-13 11:12:58 -07:00
Cory Bennett
608e586d1c
use --gjq for GJson Query to filter json response data, remove --jq option
2017-09-10 22:48:40 -07:00
Cory Bennett
2c552ac530
fix field tag syntax
2017-09-09 19:13:58 -07:00
Cory Bennett
1d269183c3
add --jq option to run a json query against Jira service response json
2017-09-09 19:02:23 -07:00
Cory Bennett
941824d7f8
add '{{jira}}' template macro to refer to path of currently running jira command
2017-09-09 17:40:26 -07:00
Cory Bennett
e6faee1573
[ #66 ] add --started option to jira worklog add to change the start time for worklog
2017-09-06 22:30:15 -07:00
Cory Bennett
9453179251
update for github.com/AlecAivazis/survey => gopkg.in/AlecAivazis/survey.v1 package
2017-09-06 08:40:34 -07:00
Cory Bennett
4d79af4f5e
use stdout to determin output terminal size
2017-09-06 00:33:53 -07:00
Cory Bennett
1106558703
[ #13 ] change default input syntax to not require escaping for special characters
2017-09-06 00:04:54 -07:00
Cory Bennett
1b854da23b
fix build for windows
2017-09-05 23:45:29 -07:00
Cory Bennett
49f6cdc54e
tweak auto-login so it does not print the standard jira login command output
2017-09-04 19:09:38 -07:00
Cory Bennett
c226077320
add --quiet global option
2017-09-04 18:12:32 -07:00
Cory Bennett
c0358eb67c
refactor to allow for --insecure and --unixproxy arguments
2017-09-04 17:53:01 -07:00
Cory Bennett
7ab6c22751
allow login prompt to be interrupted
2017-09-03 18:57:08 -07:00
Cory Bennett
979da1f3a5
refactor for GlobalOptions and CommonOptions
2017-09-02 14:05:27 -07:00
Cory Bennett
0a5510b231
move commands from jiracli package to jiracmd package
2017-09-02 09:14:54 -07:00
Cory Bennett
de1460ddc9
use cliError for all cli errors
2017-09-01 23:32:40 -07:00