Skip to content

Commit

Permalink
Always include the os package import when generating the root command (
Browse files Browse the repository at this point in the history
…#1557)

Signed-off-by: John McBride <jmcbride@vmware.com>
  • Loading branch information
jpmcb authored Dec 9, 2021
1 parent 01e05b8 commit 19c9c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cobra/tpl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 19c9c74

Please sign in to comment.