MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ResolveConfigPath

Function ResolveConfigPath

internal/bootstrap/bootstrap.go:509–519  ·  view source on GitHub ↗

ResolveConfigPath resolves the configuration file path.

(flagPath string)

Source from the content-addressed store, hash-verified

507
508// ResolveConfigPath resolves the configuration file path.
509func ResolveConfigPath(flagPath string) string {
510 if flagPath != "" {
511 return flagPath
512 }
513
514 if path, found := config.FindDefaultConfigPath(); found {
515 return path
516 }
517
518 return ""
519}
520
521// ResolveConfigPathForWizard resolves a configuration path for the config wizard.
522//

Callers 1

BootstrapFunction · 0.85

Calls 1

FindDefaultConfigPathFunction · 0.92

Tested by

no test coverage detected