diff --git a/cobra/tpl/main.go b/cobra/tpl/main.go index 8e2fe4e5..009524ca 100644 --- a/cobra/tpl/main.go +++ b/cobra/tpl/main.go @@ -37,9 +37,9 @@ package cmd import ( {{- if .Viper }} - "fmt" + "fmt"{{ end }} "os" -{{ end }} + "github.com/spf13/cobra" {{- if .Viper }} "github.com/spf13/viper"{{ end }}