Skip to content

Commit ec5327d

Browse files
authored
fix: root cmd init
1 parent 85a5f47 commit ec5327d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewRootCmd() *cobra.Command {
3434
// When the code is loaded into memory upon invocation, the cobra/viper packages
3535
// are invoked to gather system context. This includes reading the configuration
3636
// file, environment variables, and parsing the command flags.
37-
func Init() {
37+
func init() {
3838
// read in environment variables that match
3939
viper.AutomaticEnv()
4040

plugin/plugin.go

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ func (f *faasPlugin) Name() string {
1818

1919
func (f *faasPlugin) Execute(args []string) error {
2020
rootCmd := cmd.NewRootCmd()
21-
cmd.Init()
2221
oldArgs := os.Args
2322
defer (func() {
2423
os.Args = oldArgs

0 commit comments

Comments
 (0)