mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
There was an error where I messed up with {{ if .viper}}.
This commit is contained in:
parent
832cc94e04
commit
c36ef206d1
1 changed files with 2 additions and 3 deletions
|
@ -143,18 +143,17 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/Fjolnir-Dvorak/environ"{{if .viper}}
|
"github.com/Fjolnir-Dvorak/environ"
|
||||||
"github.com/spf13/cobra"{{if .viper}}
|
"github.com/spf13/cobra"{{if .viper}}
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"path/filepath"{{end}}
|
"path/filepath"{{end}}
|
||||||
){{if .viper}}
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VendorName = ""
|
VendorName = ""
|
||||||
ApplicationName = "{{.appName}}"
|
ApplicationName = "{{.appName}}"
|
||||||
DefaultConfType = "yaml"
|
DefaultConfType = "yaml"
|
||||||
)
|
)
|
||||||
{{end}}
|
|
||||||
var ({{if .viper}}
|
var ({{if .viper}}
|
||||||
cfgFile string{{end}}
|
cfgFile string{{end}}
|
||||||
Environ environ.Environ
|
Environ environ.Environ
|
||||||
|
|
Loading…
Add table
Reference in a new issue