-
Notifications
You must be signed in to change notification settings - Fork 66
[Audit] Standardize CLI output: migrate 41 chalk imports to onboarding helpers #87
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
The CLI has inconsistent output patterns across 60 command files:
- 41 commands import
chalkdirectly instead of usingcolors/helpers fromonboarding/ - 1,900 raw
console.logcalls mixed with@clack/promptsoutput - Error output uses 3 different methods:
console.error(),this.context.stderr.write(), anderror()helper
This creates visual inconsistency — some commands show styled clack prompts, others show raw chalk text.
Proposed Solution
- Replace all direct
chalkimports withcolors,success(),warn(),error(),step()fromonboarding/ - Replace
console.log(chalk.*)with the appropriate helper - Replace
ora()spinners with thespinner()wrapper from onboarding
Scope
All 41 files in packages/cli/src/commands/ that import chalk directly, including the heaviest:
memory.ts(1,027 LOC),agent.ts(1,004 LOC),recommend.ts(733 LOC)update.ts,translate.ts,publish.ts
Acceptance Criteria
- Zero
import chalkinpackages/cli/src/commands/ - All user-facing output uses onboarding helpers
- Build passes, no visual regressions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request