fix: undefined er (#1039)
This commit is contained in:
		@ -214,6 +214,7 @@ package cmd
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
 | 
						"os"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	homedir "github.com/mitchellh/go-homedir"
 | 
						homedir "github.com/mitchellh/go-homedir"
 | 
				
			||||||
	"github.com/spf13/cobra"
 | 
						"github.com/spf13/cobra"
 | 
				
			||||||
@ -255,6 +256,11 @@ func init() {
 | 
				
			|||||||
	rootCmd.AddCommand(initCmd)
 | 
						rootCmd.AddCommand(initCmd)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func er(msg interface{}) {
 | 
				
			||||||
 | 
						fmt.Println("Error:", msg)
 | 
				
			||||||
 | 
						os.Exit(1)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func initConfig() {
 | 
					func initConfig() {
 | 
				
			||||||
	if cfgFile != "" {
 | 
						if cfgFile != "" {
 | 
				
			||||||
		// Use config file from the flag.
 | 
							// Use config file from the flag.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user