Skip to content

Commit 19c9c74

Browse files
authored
Always include the os package import when generating the root command (#1557)
Signed-off-by: John McBride <[email protected]>
1 parent 01e05b8 commit 19c9c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cobra/tpl/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ package cmd
3737
3838
import (
3939
{{- if .Viper }}
40-
"fmt"
40+
"fmt"{{ end }}
4141
"os"
42-
{{ end }}
42+
4343
"github.com/spf13/cobra"
4444
{{- if .Viper }}
4545
"github.com/spf13/viper"{{ end }}

0 commit comments

Comments
 (0)