From 13a0f7697dc1268bcc5163be6e539ec5c4f47306 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 20:15:08 +0000 Subject: [PATCH 1/4] Initial plan From f3fa89317243b6b22e5ad64d2fb5a381f4766fe6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 20:20:52 +0000 Subject: [PATCH 2/4] standardize separator widths to 40 and add emojis to section headers Co-authored-by: ewega <26189114+ewega@users.noreply.github.com> --- cmd/cleanup.go | 6 +++--- cmd/configure_connection_add.go | 4 ++-- cmd/configure_connection_delete.go | 4 ++-- cmd/configure_connection_update.go | 4 ++-- cmd/configure_full.go | 8 ++++---- cmd/configure_project_delete.go | 4 ++-- cmd/configure_projects.go | 4 ++-- cmd/configure_scope_add.go | 4 ++-- cmd/configure_scope_delete.go | 4 ++-- cmd/deploy_azure.go | 2 +- cmd/status.go | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/cmd/cleanup.go b/cmd/cleanup.go index d095949..4611309 100644 --- a/cmd/cleanup.go +++ b/cmd/cleanup.go @@ -146,12 +146,12 @@ func runAzureCleanup() error { } } - fmt.Printf("\nDeployment found:\n") + fmt.Printf("\nšŸ“‹ Deployment found:\n") fmt.Printf(" Deployed: %s\n", state.DeployedAt) fmt.Printf(" Resource Group: %s\n", state.ResourceGroup) fmt.Printf(" Region: %s\n", state.Region) - fmt.Printf("\nResources to delete:\n") + fmt.Printf("\nšŸ—‘ļø Resources to delete:\n") if acrName, ok := state.Resources.ACR.(string); ok && acrName != "" { fmt.Printf(" Container Registry: %s\n", acrName) } @@ -161,7 +161,7 @@ func runAzureCleanup() error { fmt.Printf(" Container: %s\n", c) } - fmt.Printf("\nEndpoints that will be removed:\n") + fmt.Printf("\n🌐 Endpoints that will be removed:\n") fmt.Printf(" Backend: %s\n", state.Endpoints.Backend) fmt.Printf(" Config UI: %s\n", state.Endpoints.ConfigUI) fmt.Printf(" Grafana: %s\n", state.Endpoints.Grafana) diff --git a/cmd/configure_connection_add.go b/cmd/configure_connection_add.go index cb65273..394636a 100644 --- a/cmd/configure_connection_add.go +++ b/cmd/configure_connection_add.go @@ -170,10 +170,10 @@ func runAddConnection(cmd *cobra.Command, args []string) error { } // ── Summary ── - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Printf("āœ… %s connection configured!\n", def.DisplayName) fmt.Printf(" ID=%d %q\n", result.ConnectionID, result.Name) - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) // ── Next step hint ── hintOrg := org diff --git a/cmd/configure_connection_delete.go b/cmd/configure_connection_delete.go index df35b4a..39d8e9e 100644 --- a/cmd/configure_connection_delete.go +++ b/cmd/configure_connection_delete.go @@ -115,9 +115,9 @@ func runDeleteConnection(cmd *cobra.Command, args []string) error { fmt.Printf("\nšŸ’¾ State saved to %s\n", statePath) } - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Printf("āœ… Connection deleted (plugin: %s, ID=%d)\n", plugin, connID) - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) fmt.Println() return nil diff --git a/cmd/configure_connection_update.go b/cmd/configure_connection_update.go index 22bf4af..49a9014 100644 --- a/cmd/configure_connection_update.go +++ b/cmd/configure_connection_update.go @@ -160,9 +160,9 @@ func runUpdateConnection(cmd *cobra.Command, args []string) error { } // ── Summary ── - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Printf("āœ… Connection updated (ID=%d) %q\n", updated.ID, updated.Name) - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) fmt.Println() return nil diff --git a/cmd/configure_full.go b/cmd/configure_full.go index 3b356bb..22816b4 100644 --- a/cmd/configure_full.go +++ b/cmd/configure_full.go @@ -168,13 +168,13 @@ func runConnectionsInternal(defs []*ConnectionDef, org, enterprise, tokenVal, en } if len(results) == 0 { - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Println("āš ļø No connections were created.") - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) return results, client, statePath, state, fmt.Errorf("no connections were created") } - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Println("āœ… Connections configured successfully!") for _, r := range results { name := r.Plugin @@ -183,7 +183,7 @@ func runConnectionsInternal(defs []*ConnectionDef, org, enterprise, tokenVal, en } fmt.Printf(" %-18s ID=%d %q\n", name, r.ConnectionID, r.Name) } - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) return results, client, statePath, state, nil } diff --git a/cmd/configure_project_delete.go b/cmd/configure_project_delete.go index 9135582..3e1033b 100644 --- a/cmd/configure_project_delete.go +++ b/cmd/configure_project_delete.go @@ -86,9 +86,9 @@ func runProjectDelete(cmd *cobra.Command, args []string, projectDeleteName strin } fmt.Println(" āœ… Project deleted") - fmt.Println("\n" + strings.Repeat("─", 50)) + fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Printf("āœ… Project %q deleted\n", name) - fmt.Println(strings.Repeat("─", 50)) + fmt.Println(strings.Repeat("─", 40)) fmt.Println() return nil diff --git a/cmd/configure_projects.go b/cmd/configure_projects.go index 23b1944..8aa8ce3 100644 --- a/cmd/configure_projects.go +++ b/cmd/configure_projects.go @@ -344,7 +344,7 @@ func finalizeProject(opts finalizeProjectOpts) error { fmt.Printf("\n\U0001f4be State saved to %s\n", opts.StatePath) } - fmt.Println("\n" + strings.Repeat("\u2500", 50)) + fmt.Println("\n" + strings.Repeat("\u2500", 40)) fmt.Println("\u2705 Project configured successfully!") fmt.Printf(" Project: %s\n", opts.ProjectName) if len(opts.Repos) > 0 { @@ -353,7 +353,7 @@ func finalizeProject(opts finalizeProjectOpts) error { for _, pn := range opts.PluginNames { fmt.Printf(" Plugin: %s\n", pn) } - fmt.Println(strings.Repeat("\u2500", 50)) + fmt.Println(strings.Repeat("\u2500", 40)) return nil } diff --git a/cmd/configure_scope_add.go b/cmd/configure_scope_add.go index 80c7e07..7c86537 100644 --- a/cmd/configure_scope_add.go +++ b/cmd/configure_scope_add.go @@ -133,10 +133,10 @@ func runScopeAdd(cmd *cobra.Command, args []string, opts *ScopeOpts) error { return err } - fmt.Println("\n" + strings.Repeat("\u2500", 50)) + fmt.Println("\n" + strings.Repeat("\u2500", 40)) fmt.Printf("\u2705 %s scopes configured successfully!\n", pluginDisplayName(selectedPlugin)) fmt.Printf(" Connection %d: scopes added\n", connID) - fmt.Println(strings.Repeat("\u2500", 50)) + fmt.Println(strings.Repeat("\u2500", 40)) fmt.Println("\nNext step:") fmt.Println(" Run 'gh devlake configure project add' to create a project and start data collection.") diff --git a/cmd/configure_scope_delete.go b/cmd/configure_scope_delete.go index f8e9aeb..51c1713 100644 --- a/cmd/configure_scope_delete.go +++ b/cmd/configure_scope_delete.go @@ -145,9 +145,9 @@ func runScopeDelete(cmd *cobra.Command, args []string) error { } fmt.Println(" \u2705 Scope deleted") - fmt.Println("\n" + strings.Repeat("\u2500", 50)) + fmt.Println("\n" + strings.Repeat("\u2500", 40)) fmt.Printf("\u2705 Scope deleted (plugin: %s, connection ID=%d, scope ID=%s)\n", selectedPlugin, selectedConnID, selectedScopeID) - fmt.Println(strings.Repeat("\u2500", 50)) + fmt.Println(strings.Repeat("\u2500", 40)) fmt.Println() return nil diff --git a/cmd/deploy_azure.go b/cmd/deploy_azure.go index e4e7fe5..f5cc322 100644 --- a/cmd/deploy_azure.go +++ b/cmd/deploy_azure.go @@ -130,7 +130,7 @@ func runDeployAzure(cmd *cobra.Command, args []string) error { printBanner("DevLake Azure Deployment") } - fmt.Printf("\nConfiguration:\n") + fmt.Printf("\nšŸ“‹ Configuration:\n") fmt.Printf(" Resource Group: %s\n", azureRG) fmt.Printf(" Location: %s\n", azureLocation) fmt.Printf(" Base Name: %s\n", azureBaseName) diff --git a/cmd/status.go b/cmd/status.go index 96e6db5..f6518df 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -80,7 +80,7 @@ func runStatus(cmd *cobra.Command, args []string) error { } printBanner("DevLake Status") - sep := " " + strings.Repeat("─", 42) + sep := " " + strings.Repeat("─", 40) if state == nil { disc, err := devlake.Discover(cfgURL) From 95ebf11a8b1dd37b4fd2c84516bcd8adbf2ea7bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:40:23 +0000 Subject: [PATCH 3/4] add trailing blank lines after closing separators per terminal output standards Co-authored-by: ewega <26189114+ewega@users.noreply.github.com> --- cmd/configure_full.go | 1 + cmd/configure_projects.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/configure_full.go b/cmd/configure_full.go index 22816b4..6443b5a 100644 --- a/cmd/configure_full.go +++ b/cmd/configure_full.go @@ -171,6 +171,7 @@ func runConnectionsInternal(defs []*ConnectionDef, org, enterprise, tokenVal, en fmt.Println("\n" + strings.Repeat("─", 40)) fmt.Println("āš ļø No connections were created.") fmt.Println(strings.Repeat("─", 40)) + fmt.Println() return results, client, statePath, state, fmt.Errorf("no connections were created") } diff --git a/cmd/configure_projects.go b/cmd/configure_projects.go index 8aa8ce3..c791967 100644 --- a/cmd/configure_projects.go +++ b/cmd/configure_projects.go @@ -354,6 +354,7 @@ func finalizeProject(opts finalizeProjectOpts) error { fmt.Printf(" Plugin: %s\n", pn) } fmt.Println(strings.Repeat("\u2500", 40)) + fmt.Println() return nil } From 17ea180d9bf530dc44fb477c872cf1758360a18b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:48:12 +0000 Subject: [PATCH 4/4] fix status.go indented separator to 38+2=40 total width; add trailing blank line in configure_full.go success path Co-authored-by: ewega <26189114+ewega@users.noreply.github.com> --- cmd/configure_full.go | 1 + cmd/status.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/configure_full.go b/cmd/configure_full.go index 6443b5a..258d4ee 100644 --- a/cmd/configure_full.go +++ b/cmd/configure_full.go @@ -185,6 +185,7 @@ func runConnectionsInternal(defs []*ConnectionDef, org, enterprise, tokenVal, en fmt.Printf(" %-18s ID=%d %q\n", name, r.ConnectionID, r.Name) } fmt.Println(strings.Repeat("─", 40)) + fmt.Println() return results, client, statePath, state, nil } diff --git a/cmd/status.go b/cmd/status.go index f6518df..c2c7ffb 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -80,7 +80,7 @@ func runStatus(cmd *cobra.Command, args []string) error { } printBanner("DevLake Status") - sep := " " + strings.Repeat("─", 40) + sep := " " + strings.Repeat("─", 38) if state == nil { disc, err := devlake.Discover(cfgURL)