Skip to content

Commit

Permalink
add to lower and upper string helper, dump version
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Apr 12, 2018
1 parent 4143c1b commit 3461e45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions commands/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func New(options ...Option) *Templating {
"index": strings.Index,
"repeat": strings.Repeat,
"split": strings.Split,
"toLower": strings.ToLower,
"toUpper": strings.ToUpper,
// path
"joinPath": filepath.Join,
"relPath": filepath.Rel,
Expand Down
2 changes: 2 additions & 0 deletions docs/templateSyntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ formats as `23<45`
* `butler{ index $string $substring }` Contains reports whether substr is within s.
* `butler{ repeat $string $count }` Repeat returns a new string consisting of count copies of the string s.
* `butler{ split $string $sep }` Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
* `butler{ toLower .Project.Name }` Returns a copy of the string s with all Unicode letters mapped to their lower case.
* `butler{ toUpper $string }` Returns a copy of the string s with all Unicode letters mapped to their upper case.

### Path

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type commandSelection struct {

var (
cfg *config.Config
version = "0.3.0"
version = "0.3.1"
primaryCommands = []string{
"Create Project",
"Create Confluence Space",
Expand Down

0 comments on commit 3461e45

Please sign in to comment.