Skip to content

Commit

Permalink
Fix template title. Closes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso committed Jul 27, 2022
1 parent 2269e60 commit 4bf4531
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmds/ocm/pkg/cobrautils/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ import (
"strings"

"golang.org/x/text/cases"
"golang.org/x/text/language"
)

var templatefuncs = map[string]interface{}{
"indent": indent,
"skipCommand": skipCommand,
"soleCommand": soleCommand,
"title": cases.Title,
"title": cases.Title(language.English).String,
}

func soleCommand(s string) bool {
Expand Down

0 comments on commit 4bf4531

Please sign in to comment.