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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user