Commit Graph

9 Commits

Author SHA1 Message Date
Evan Gates 0e3082fab6 templates: add wrap helper function
Add "wrap" command to TemplateProcessor.  Use
github.com/mitchellh/go-wordwrap to wrap lines on word breaks at
a given length.  This can make long fields much more readable in
a terminal.  E.g.

	{{ .fields.description | wrap 76 | indent 2}}
2020-09-30 11:51:06 -04:00
ldelossa a8c961fe19 tests: rework passive tests into native go tests
this commit re-works the basic.t tests and administers them using go's
native testing suite.

Signed-off-by: ldelossa <ldelossa@redhat.com>
2020-09-11 09:15:07 -04:00
Cory Bennett a26683e01d update all usage of user.name to user.accountId for privacy migration:
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/
2020-02-23 23:59:39 -08:00
Cory Bennett 7e9746304a add template functions to handle table output, fixes #176, replaces #296 2019-12-02 14:43:07 -08:00
Cory Bennett 719f7a68a7 add sprig template functions, replaces [#215]
http://masterminds.github.io/sprig/
2019-10-02 08:24:04 -07:00
Mike Pountney 7320d4afef resolve merge conflict in cmd/jira/main.go 2019-09-16 08:34:26 -07:00
Cory Bennett 0e520a49ae [#277] update figtree to latest 2019-09-15 23:41:42 -07: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í f125ef3fa9 all: convert to a Go module
And remove vendor/, as it's now unnecessary. go.sum ensures that
dependencies aren't tampered with, and proxy.golang.org keeps copies of
all the archives.
2019-05-26 23:40:16 +01:00