From 41baff87437fa62033eb377db0feb60297d28074 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sun, 1 Mar 2020 02:54:58 +0100 Subject: [PATCH] Add template base --- cmd/standalone.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/standalone.go b/cmd/standalone.go index 9250099..0f1b738 100644 --- a/cmd/standalone.go +++ b/cmd/standalone.go @@ -68,7 +68,11 @@ func createJiraTicketStandaloneCmdF(cmd *cobra.Command, _ []string) error { } // 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) if err != nil {