go-jira / jira

simple jira command line client in Go
Apache License 2.0
2.66k stars 323 forks source link

Make Templates Readable #473

Open igbanam opened 1 year ago

igbanam commented 1 year ago

The templates in jiracli/templates.go have logic in them. Currently, it's difficult to grok what's going on in these templates because of the way they're written.

This change does not introduce new functionality; it just sweeps through this template file ensuring that the templates are readable.

With this change, it would be easier — in future — to update these template, or introduce new functionality to these templates.

Templates

m-fonseca commented 1 year ago

FYI: This makes the template much easier to read, but unfortunately it has the side effect of making the fields have uneven formatting. E.g.:

image (Note: I've augmented parts of the template, but they are base on the same formatting)