INNER CODE UNIT · Go
configFile
aylei/kubectl-debug · pkg/plugin/cmd.go:284
configFile = usr.HomeDir + filepath.FromSlash(defaultConfigLocation)
}
}
config, err := LoadFile(configFile)
if err != nil {
if !os.IsNotExist(err) {
// TODO: support verbosity level
fmt.Fprintf(o.ErrOut, "error parsing configuration file: %v", err)
}
config = &Config{}
}
// combine defaults, config file and user parameters
o.Command = args[1:]
if len(o.Command) < 1 {
if len(config.Command) > 0 {
o.Command = config.Command
} else {