There was an error where I messed up with {{ if .viper}}.

This commit is contained in:
Raphael Tiersch 2017-07-31 16:36:49 +02:00
parent 832cc94e04
commit c36ef206d1

View file

@ -143,18 +143,17 @@ import (
"fmt"
"os"
"github.com/Fjolnir-Dvorak/environ"{{if .viper}}
"github.com/Fjolnir-Dvorak/environ"
"github.com/spf13/cobra"{{if .viper}}
"github.com/spf13/viper"
"path/filepath"{{end}}
){{if .viper}}
)
const (
VendorName = ""
ApplicationName = "{{.appName}}"
DefaultConfType = "yaml"
)
{{end}}
var ({{if .viper}}
cfgFile string{{end}}
Environ environ.Environ