mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Always include the os package import when generating the root command
Signed-off-by: John McBride <jmcbride@vmware.com>
This commit is contained in:
parent
01e05b8ea1
commit
03c62a4f98
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
{{- if .Viper }}
|
{{- if .Viper }}
|
||||||
"fmt"
|
"fmt"{{ end }}
|
||||||
"os"
|
"os"
|
||||||
{{ end }}
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
{{- if .Viper }}
|
{{- if .Viper }}
|
||||||
"github.com/spf13/viper"{{ end }}
|
"github.com/spf13/viper"{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue