-
Notifications
You must be signed in to change notification settings - Fork 308
Closed as not planned
Closed as not planned
Copy link
Labels
automationclicookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Issue Description
Priority: Low
Type: Code inconsistency
Problem
The list command uses inconsistent output formatting in verbose mode compared to other commands. It directly uses fmt.Fprintf instead of console formatting helpers.
Current Code (list_workflows_command.go:70-73)
if verbose && !jsonOutput {
fmt.Fprintf(os.Stderr, "Listing workflow files\n")
if pattern != "" {
fmt.Fprintf(os.Stderr, "Filtering by pattern: %s\n", pattern)
}
}Expected Pattern (from status_command.go:38-42)
if verbose && !jsonOutput {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Checking status of workflow files"))
if pattern != "" {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Filtering by pattern: %s", pattern)))
}
}Impact
- Inconsistent visual appearance in verbose mode across commands
listcommand output won't have the blue info message styling- Minor UX inconsistency, doesn't affect functionality
Suggested Fix
Update pkg/cli/list_workflows_command.go lines 70-73 to use console formatting:
if verbose && !jsonOutput {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Listing workflow files"))
if pattern != "" {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Filtering by pattern: %s", pattern)))
}
}Related Guidelines
From AGENTS.md:
ALWAYS use console formatting for user output:
fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Info"))
Related Code
- Inconsistent code:
pkg/cli/list_workflows_command.go:70-73 - Correct pattern:
pkg/cli/status_command.go:38-42 - Console helpers:
pkg/console/console.go
Related to [cli-consistency] CLI Consistency Issues - January 30, 2026 #12740
AI generated by CLI Consistency Checker
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
automationclicookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!documentationImprovements or additions to documentationImprovements or additions to documentation
Type
Fields
Give feedbackNo fields configured for issues without a type.