INNER CODE UNIT · Go

func

updatecli/updatecli · pkg/core/config/main.go:268

func (config *Config) Reset() {
	*config = Config{
		gitHandler: &gitgeneric.GoGit{},
	}
}

// BaseDir returns the directory the relative paths of this manifest resolve against.
//
// An empty value, the default, means they resolve against the process working directory.
func (config *Config) BaseDir() string {
	if config.Spec.Options.RelativePaths != RelativePathBaseManifest {
		return config.baseDir
	}

	if config.filename == "" {
		return config.baseDir
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…