Skip to content
Myr

Always include the os package import when generating the root command (#1557)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John McBride · committed by GitHub · parent 01e05b8 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: John McBride <jmcbride@vmware.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:cobra/tpl/main.go+2 added-2 removed
35 unmodified lines
36package cmd3738import (39{{- if .Viper }}40 "fmt"40 "fmt"{{ end }}41 "os"42{{ end }}4243 "github.com/spf13/cobra"44{{- if .Viper }}45 "github.com/spf13/viper"{{ end }}46)
117 unmodified lines