Commit Graph

41 Commits

Author SHA1 Message Date
Ron Green f089cd51f2 go fmt all tree 2021-05-05 08:40:24 -04:00
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
Keien Ohta c2abbd9864 update templates with emailAddress and login
go-jira/jira#369
2020-09-15 13:31:17 -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
colton riffel 9cbd9937be Added a line break removal function 2019-12-01 16:21:52 -08:00
colton riffel db53622548 Pushed Readfile to .jira.d directory instead of pwd 2019-12-01 16:21:52 -08:00
Cory Bennett 719f7a68a7 add sprig template functions, replaces [#215]
http://masterminds.github.io/sprig/
2019-10-02 08:24:04 -07:00
Adriano 027adeef46 Add 'pctOf' and 'fit' template functions 2019-08-25 15:20:48 -04:00
Matthias Bethke 43e07f1197 fix worklog template to allow multiline comments 2019-07-05 09:07:09 +02: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 359bec2fdf [#159] fix slice bounds out of range error in abbrev template function 2018-04-01 11:47:23 -07:00
Andrew Somerville fd30bc1392 prevent crash if priority is not set 2018-03-07 16:59:47 -05:00
Cory Bennett 8c7ca383f6 [#139] add shellquote and toMinJson template functions 2018-01-07 10:49:00 -08: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 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 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 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 0a5510b231 move commands from jiracli package to jiracmd package 2017-09-02 09:14:54 -07:00
Cory Bennett 36c26c523a fix stray newline for list table template 2017-08-31 22:57:57 -07:00
Cory Bennett 3942f6f5d6 fix dynamic table output when not on tty 2017-08-31 16:00:45 -07:00
Cory Bennett 2a081dd767 use terminal width to adjust list table output 2017-08-30 18:31:49 -07:00
Cory Bennett 1f345cedee refactor trivial objects in favor of arguments to static functions 2017-08-27 00:47:11 -07:00
Cory Bennett da39323adf add issuetypes command 2017-08-19 23:55:38 -05:00
Cory Bennett 0bd3ca2fab add components command 2017-08-19 23:39:04 -05:00
Cory Bennett cc90610e72 add component add command 2017-08-19 22:57:41 -05:00
Cory Bennett 36632a52f0 rewrite checkpoint 2017-08-13 18:23:38 -07:00