-
Notifications
You must be signed in to change notification settings - Fork 3
Standardize CLI terminal output: separator widths and missing emojis #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
13a0f76
f3fa893
95ebf11
17ea180
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -168,13 +168,14 @@ 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)) | ||||||||
| fmt.Println() | ||||||||
| 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 +184,8 @@ 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)) | ||||||||
|
||||||||
| fmt.Println(strings.Repeat("─", 40)) | |
| fmt.Println(strings.Repeat("─", 40)) | |
| fmt.Println() |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -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,8 @@ 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)) | ||||||||
|
||||||||
| fmt.Println(strings.Repeat("\u2500", 40)) | |
| fmt.Println(strings.Repeat("\u2500", 40)) | |
| fmt.Println() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the
len(results) == 0branch, the summary separator block ends and the function returns an error immediately. Per Terminal Output Standards (blank line after separators), this will cause the subsequent error message printed byExecute()to appear directly under the separator with no breathing room. Add an extra blank line after the closing separator (or ensure the next output starts with a blank line) before returning.