Skip to content

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Jan 17, 2026

Summary

Migrates all add-on name and plan references to use the new semantic color.addon() function from @heroku/heroku-cli-util instead of generic colors like color.yellow() or color.green().

This is PR 3 of 17 in the color system migration plan, focusing on adopting the semantic color for add-ons as outlined in the migration plan document.

Changes Made

  • Updated 12 source files: 7 in commands/addons/, 1 in commands/apps/, 1 in commands/drains/, and 3 lib files
  • Changed all imports from @heroku-cli/color to @heroku/heroku-cli-util in affected files
  • Updated color.cmd() to color.command() where affected by import changes
  • Migrated add-on names, plans, and service names to use color.addon()
  • Kept config var colors as color.green() (out of scope - will be handled separately)

The new color.addon() function provides consistent bold yellow formatting for add-on names and plans throughout the CLI.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • perf: Performance improvement
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • docs: Documentation change
  • style: Styling update
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • tests: Add/update/remove tests
  • build: Change to the build system
  • ci: Continuous integration workflow update

Testing

Notes:

  • All existing tests have been updated to match the new color output format
  • Build passes successfully with no TypeScript errors
  • No functional changes - only visual/cosmetic improvements to output

Steps:

  1. Passing CI suffices
  2. Optional manual verification:
    • ./bin/run addons:create <service:plan> - verify addon name displays with bold yellow
    • ./bin/run addons:destroy <addon> - verify addon name in error messages
    • ./bin/run addons:wait <addon> - verify "Created " output uses new color
    • ./bin/run drains - verify addon drains display with proper colors

Screenshots (if applicable)

N/A - Terminal color output changes

Related Issues

Part of the color system migration plan -- https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002T2hvTYAR/view

Migrates all add-on name and plan references to use the new semantic
color.addon() function from @heroku/heroku-cli-util instead of generic
colors like color.yellow() or color.green().

Changes:
- Updated 8 files: 5 commands in addons/, 1 in apps/, 1 in drains/, 1 lib file
- Changed all imports from @heroku-cli/color to @heroku/heroku-cli-util
- Updated color.cmd() to color.command() where affected by import changes
- Migrated addon names, addon plans, and addon service names to color.addon()
- Kept config var colors as color.green() (out of scope for this PR)

The new color.addon() function provides consistent bold yellow formatting
for add-on names and plans throughout the CLI.

Part of the color system migration plan (PR 3 of 17).
@eablack eablack requested a review from a team as a code owner January 17, 2026 00:58
@eablack eablack changed the base branch from main to v11.0.0 January 17, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant