Add template base

This commit is contained in:
Miguel de la Cruz 2020-03-01 02:54:58 +01:00
parent c98d8a8608
commit 41baff8743

View file

@ -68,7 +68,11 @@ func createJiraTicketStandaloneCmdF(cmd *cobra.Command, _ []string) error {
} }
// process template // process template
description := TBD() tmpl, err := template.ParseFiles(template)
if err != nil {
ErrorAndExit(cmd, err)
}
tmpl.Execute() // ToDo: write in a description var
jiraClient, err := jira.NewClient(username, token) jiraClient, err := jira.NewClient(username, token)
if err != nil { if err != nil {