This commit is contained in:
alessio 2017-08-11 22:24:18 +02:00
parent 79b637b059
commit a26b505473
3 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import (
"time"
)
// realize hidden dir
var Dir = ".realize/"
// Settings defines a group of general settings

View File

@ -59,6 +59,7 @@ type tool struct {
name string
}
// Cmds go supported
type Cmds struct {
Vet bool `yaml:"vet" json:"vet"`
Fmt bool `yaml:"fmt" json:"fmt"`
@ -69,7 +70,7 @@ type Cmds struct {
Run bool `yaml:"run" json:"run"`
}
// Buildmode options
// Cmd buildmode options
type Cmd struct {
Status bool `yaml:"status" json:"status"`
Args []string `yaml:"args,omitempty" json:"args,omitempty"`

View File

@ -54,7 +54,6 @@ func getEnvPath(env string) string {
path := filepath.SplitList(os.Getenv(env))
if len(path) == 0 {
return ""
} else {
return path[0]
}
return path[0]
}