diff --git a/pkg/cli/file_tracker.go b/pkg/cli/file_tracker.go index ae20c32893..34c2bbf086 100644 --- a/pkg/cli/file_tracker.go +++ b/pkg/cli/file_tracker.go @@ -81,7 +81,7 @@ func (ft *FileTracker) StageAllFiles(verbose bool) error { fileTrackerLog.Printf("Staging %d tracked files", len(allFiles)) if len(allFiles) == 0 { if verbose { - fmt.Println("No files to stage") + fmt.Fprintln(os.Stderr, console.FormatInfoMessage("No files to stage")) } return nil } diff --git a/pkg/cli/pr_command.go b/pkg/cli/pr_command.go index 784295bde8..20dd2b2b1c 100644 --- a/pkg/cli/pr_command.go +++ b/pkg/cli/pr_command.go @@ -767,7 +767,7 @@ func transferPR(prURL, targetRepo string, verbose bool) error { // createPR creates a pull request using GitHub CLI and returns the PR number func createPR(branchName, title, body string, verbose bool) (int, string, error) { if verbose { - fmt.Printf("Creating PR: %s\n", title) + fmt.Fprintln(os.Stderr, console.FormatProgressMessage(fmt.Sprintf("Creating PR: %s", title))) } // Get the current repository info to ensure PR is created in the correct repo diff --git a/pkg/cli/run_workflow_validation.go b/pkg/cli/run_workflow_validation.go index c2163f1d8a..00169f31e8 100644 --- a/pkg/cli/run_workflow_validation.go +++ b/pkg/cli/run_workflow_validation.go @@ -285,7 +285,7 @@ func validateRemoteWorkflow(workflowName string, repoOverride string, verbose bo } if verbose { - fmt.Printf("Checking if workflow '%s' exists in repository '%s'...\n", lockFileName, repoOverride) + fmt.Fprintln(os.Stderr, console.FormatProgressMessage(fmt.Sprintf("Checking if workflow '%s' exists in repository '%s'...", lockFileName, repoOverride))) } // Use gh CLI to list workflows in the target repository @@ -312,8 +312,8 @@ func validateRemoteWorkflow(workflowName string, repoOverride string, verbose bo for _, wf := range workflows { if strings.HasSuffix(wf.Path, lockFileName) { if verbose { - fmt.Printf("Found workflow '%s' in repository (path: %s, state: %s)\n", - wf.Name, wf.Path, wf.State) + fmt.Fprintln(os.Stderr, console.FormatProgressMessage(fmt.Sprintf("Found workflow '%s' in repository (path: %s, state: %s)", + wf.Name, wf.Path, wf.State))) } return nil }