-
Notifications
You must be signed in to change notification settings - Fork 302
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Objective
Replace raw fmt.Fprintf(os.Stderr, ...) calls with console.Format* wrappers across interactive and add-workflow CLI files identified in the Terminal Stylist audit (discussion #21126).
Context
The audit found ~54 files with unformatted stderr output. This issue covers interactive workflow and add command files.
Files to Modify
All files are in pkg/cli/:
add_command.goadd_interactive_auth.goadd_interactive_engine.goadd_interactive_git.goadd_interactive_orchestrator.goadd_interactive_schedule.goadd_interactive_secrets.goadd_interactive_workflow.gointeractive.gorun_interactive.gorun_push.gorun_workflow_execution.go
Approach
For each file:
- Find all
fmt.Fprintf(os.Stderr, ...)andfmt.Fprintln(os.Stderr, ...)calls NOT already using console formatters - Choose the correct formatter based on message semantics:
- Info/neutral →
console.FormatInfoMessage - Success/completion →
console.FormatSuccessMessage - Warning →
console.FormatWarningMessage - Error →
console.FormatErrorMessage - Command display →
console.FormatCommandMessage - Prompt messages →
console.FormatPromptMessage - List items →
console.FormatListItem
- Info/neutral →
- Convert
fmt.Fprintf(os.Stderr, "...\n", args...)→fmt.Fprintln(os.Stderr, console.FormatXxxMessage(fmt.Sprintf("...", args...)))
Note
Do NOT change:
- Calls that already wrap a
console.Format*function - Calls that output structured data (JSON, tables) to stdout
- Interactive Huh form setup code (these use their own styling)
Acceptance Criteria
- All raw
fmt.Fprintf(os.Stderr, ...)diagnostic messages in the listed files replaced with console formatters -
make fmtpasses with no changes -
make test-unitpasses
Generated by Plan Command for issue #discussion #21126 · ◷
- expires on Mar 18, 2026, 5:12 AM UTC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.