Skip to content
Myr

fix: undefined er (#1039)

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

authored by Andrea Falzetti · committed by GitHub · parent 89c7ffb · Browse files · 1 file+6 added−0 removed
This commit

State

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

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:README.md+6 added
212 unmodified lines
213package cmd214215import (216 "fmt"217 "os"218219 homedir "github.com/mitchellh/go-homedir"220 "github.com/spf13/cobra"221 "github.com/spf13/viper"
33 unmodified lines
255 rootCmd.AddCommand(addCmd)256 rootCmd.AddCommand(initCmd)257}258259func er(msg interface{}) {260 fmt.Println("Error:", msg)261 os.Exit(1)262}263264func initConfig() {265 if cfgFile != "" {266 // Use config file from the flag.267 viper.SetConfigFile(cfgFile)
503 unmodified lines