Skip to content

Commit

Permalink
Added default parameter for project.createdDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Knetic committed Jan 18, 2016
1 parent c155df6 commit 92c2db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RunSettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"fmt"
"path/filepath"
"time"
"strings"
)

Expand Down Expand Up @@ -105,6 +106,7 @@ func FindRunSettings() (RunSettings, error) {
// make parameters, set default project.name
ret.parameters = make(map[string][]string)
ret.parameters["project.name"] = []string{filepath.Base(ret.targetPath)}
ret.parameters["project.createdDate"] = []string{time.Now().Format("2006-01-02")}

err = parseParametersTo(parameterGroup, ret.parameters)
if err != nil {
Expand Down

0 comments on commit 92c2db3

Please sign in to comment.