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

Function ResolveConfigPathForWizard

internal/bootstrap/bootstrap.go:525–535  ·  view source on GitHub ↗

ResolveConfigPathForWizard resolves a configuration path for the config wizard. It prefers an explicit flag path, then an existing default config file, and finally falls back to the standard default path so the wizard can create it.

(flagPath string)

Source from the content-addressed store, hash-verified

523// It prefers an explicit flag path, then an existing default config file, and
524// finally falls back to the standard default path so the wizard can create it.
525func ResolveConfigPathForWizard(flagPath string) string {
526 if flagPath != "" {
527 return flagPath
528 }
529
530 if path, found := config.FindDefaultConfigPath(); found {
531 return path
532 }
533
534 return config.GetDefaultConfigPath()
535}
536
537// HandleConfigWizard launches the configuration wizard.
538func HandleConfigWizard(cfg *config.Config, configPath string, activeProfile string) error {

Calls 2

FindDefaultConfigPathFunction · 0.92
GetDefaultConfigPathFunction · 0.92