func LoadConfig() (*Config, error) {
	torusRoot, err := CreateTorusRoot()
	if err != nil {
		return nil, errs.NewErrorExitError("Failed to initialize Torus root dir.", err)
	}

	cfg, err := NewConfig(torusRoot)
	if err != nil {
		return nil, errs.NewErrorExitError("Failed to load config.", err)
	}

	return cfg, nil
}
// LoadConfig loads the config, standardizing cli errors on failure.
LoadConfig loads the config, standardizing cli errors on failure.
// LoadConfig loads the config standardizing cli errors on failure .
func LoadConfig() (*Config, error) {
	torusRoot, err := CreateTorusRoot()
	if err != nil {
		return nil, errs.NewErrorExitError("Failed to initialize Torus root dir.", err)
	}
	cfg, err := NewConfig(torusRoot)
	if err != nil {
		return nil, errs.NewErrorExitError("Failed to load config.", err)
	}
	return cfg, nil
}
func LoadConfig ( ) ( * Config , error ) { torusRoot , err := CreateTorusRoot ( ) if err != nil { return nil , errs . NewErrorExitError ( " " , err ) } cfg , err := NewConfig ( torusRoot ) if err != nil { return nil , errs . NewErrorExitError ( " " , err ) } return cfg , nil }
LoadConfig loads the config, standardizing cli errors on failure.
LoadConfig loads the config standardizing cli errors on failure .