From 6a4fdb6850359c1f1ed24d2f955ccee0184548a2 Mon Sep 17 00:00:00 2001 From: Joakim Date: Tue, 6 Jan 2026 21:54:21 +0100 Subject: [PATCH] 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 --- opal-task/cmd/setup.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/opal-task/cmd/setup.go b/opal-task/cmd/setup.go index fcc1b7e..4c57ffe 100644 --- a/opal-task/cmd/setup.go +++ b/opal-task/cmd/setup.go @@ -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)