mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Remove trailing whitespace in rootcmd (#606)
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
ccaecb155a
commit
b95ab734e2
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ func Execute() {
|
|||
}
|
||||
}
|
||||
|
||||
func init() { {{if .viper}}
|
||||
func init() { {{- if .viper}}
|
||||
cobra.OnInitialize(initConfig)
|
||||
{{end}}
|
||||
// Here you will define your flags and configuration settings.
|
||||
|
|
2
cobra/cmd/testdata/root.go.golden
vendored
2
cobra/cmd/testdata/root.go.golden
vendored
|
@ -49,7 +49,7 @@ func Execute() {
|
|||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
func init() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
|
||||
// Here you will define your flags and configuration settings.
|
||||
|
|
Loading…
Reference in a new issue