Skip to content

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Jan 23, 2026

Summary

This PR is the second batch of the migration to use semantic color.command() for CLI command examples in static example/examples properties. This continues the work from the color system migration from @heroku-cli/color to @heroku/heroku-cli-util.

Updates 29 command files to wrap CLI command examples with color.command() using template literals, enabling semantic coloring of command examples in help text.

Changes

  • Updated static example and examples properties to use ${color.command('...')} pattern
  • Migrated imports from @heroku-cli/color to @heroku/heroku-cli-util where needed
  • Added color imports to files that were missing them
  • Fixed heredoc issues in certs/update.ts and pg/connection-pooling/attach.ts

Type of Change

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Testing

Notes:
This change affects how command examples are displayed in help text, using semantic color functions instead of direct strings.

Steps:

  1. Build passes successfully (npm run build)
  2. oclif manifest generation succeeds
  3. Help text for updated commands displays correctly with color formatting
  4. Examples use the new semantic color.command() function

Related Issues

follow-on from #3488
https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002T2hvTYAR/view

This is the second batch of command files being migrated to use the
semantic color.command() function in their static example/examples
properties.

Changes:
- Updated 29 command files to wrap CLI command examples with color.command()
- Migrated imports from @heroku-cli/color to @heroku/heroku-cli-util
- Added color imports where missing
- Fixed heredoc issues in certs/update and pg/connection-pooling/attach

Files updated:
- apps/* (7 files)
- certs/* (2 files)
- git/* (2 files)
- keys/* (2 files)
- local/* (2 files)
- pg/backups, pg/connection-pooling, pg/credentials, pg/links, pg/maintenance (6 files)
- pipelines/* (8 files)
@eablack eablack requested a review from a team as a code owner January 23, 2026 22:49
Copy link
Contributor

@tlowrimore-heroku tlowrimore-heroku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eablack eablack merged commit 8fbdfa7 into v11.0.0 Jan 23, 2026
13 checks passed
@eablack eablack deleted the eb/color-migration-command-examples-2 branch January 23, 2026 23:50
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.

2 participants