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"
|
||||
"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
|
||||
|
|
Loading…
Add table
Reference in a new issue