Alan Voiski
42e5d23f63
Ensure body is NPE safe
2020-09-07 16:24:45 -04:00
Alan Voiski
b572037cfe
Support empty responses in request commands
...
Avoid JSON parser when the response is empty - common cases for HTTP 204 in issues deletion, or moving issues to sprint.
2020-09-07 16:24:45 -04:00
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
Daniel Martí
9bcdcc128f
don't use ReadAll when decoding JSON
...
An empty stream isn't valid JSON, so we shouldn't silently ignore it.
2019-05-27 13:09:31 +01:00
Cory Bennett
c9b5054cde
fix default values to load after parsing configs
2017-10-28 14:23:27 -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
1d269183c3
add --jq option to run a json query against Jira service response json
2017-09-09 19:02:23 -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
b120c0ba10
change --method to use -M for backwards compat
2017-09-03 00:39:28 -07:00
Cory Bennett
4b60313d32
data argument is optional (for GET and DELETE requests)
2017-09-02 19:53:51 -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