MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Exists

Method Exists

pkg/devspace/config/loader/loader.go:609–611  ·  view source on GitHub ↗

Exists checks whether the yaml file for the config exists or the configs.yaml exists

()

Source from the content-addressed store, hash-verified

607
608// Exists checks whether the yaml file for the config exists or the configs.yaml exists
609func (l *configLoader) Exists() bool {
610 return configExistsInPath(ConfigPath(l.absConfigPath))
611}
612
613// SetDevSpaceRoot checks the current directory and all parent directories for a .devspace folder with a config and sets the current working directory accordingly
614func (l *configLoader) SetDevSpaceRoot(log log.Logger) (bool, error) {

Callers 1

testExistsFunction · 0.95

Calls 2

configExistsInPathFunction · 0.85
ConfigPathFunction · 0.85

Tested by 1

testExistsFunction · 0.76