Skip to content

[cli-consistency] Inconsistent verbose output formatting in 'list' command #12743

@github-actions

Description

@github-actions

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
  • list command 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

AI generated by CLI Consistency Checker

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationclicookieIssue Monster Loves Cookies!documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions