Skip to content

Commit

Permalink
add "comment" template filter to comment out multiline statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Bennett committed Sep 14, 2015
1 parent c0070cf commit d664868
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jira/cli/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ func runTemplate(templateContent string, data interface{}, out io.Writer) error
}
return strings.Replace(content, "\n", string(indent), -1)
},
"comment": func(content string) string {
return strings.Replace(content, "\n", "\n# ", -1)
},
"color": func(color string) string {
return ansi.ColorCode(color)
},
Expand Down

0 comments on commit d664868

Please sign in to comment.