fix: show default directories before asking to customize in setup wizard

Display the default config and data directories before prompting
the user if they want to customize them. This gives better context
for the decision.

Before: Only showed directories if user chose not to customize
After: Shows directories first, then asks if user wants to change them
This commit is contained in:
2026-01-06 21:54:21 +01:00
parent 140d9f7f25
commit 6a4fdb6850
+7 -3
View File
@@ -203,12 +203,16 @@ func runInteractiveSetup() {
configDir := profile.ConfigDir
dataDir := profile.DataDir
// Show default directories first
if profile.Name != "Custom" {
fmt.Printf("Config: %s\n", configDir)
fmt.Printf("Data: %s\n", dataDir)
fmt.Println()
}
if profile.Name == "Custom" || wizard.Confirm("Customize directory paths?") {
configDir = wizard.PromptString("Config directory", configDir)
dataDir = wizard.PromptString("Data directory", dataDir)
} else {
fmt.Printf("Config: %s\n", configDir)
fmt.Printf("Data: %s\n", dataDir)
}
// Step 3: Server configuration (if server profile)