-
Notifications
You must be signed in to change notification settings - Fork 234
feat: migrate color.cmd() to color.command() - part 1 #3485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tlowrimore-heroku
approved these changes
Jan 23, 2026
Contributor
tlowrimore-heroku
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR migrates from color.cmd() to color.command() for CLI command references in user-facing messages. Changes: - Replace color.cmd() with color.command() for command examples - Replace color.cmd() with color.code() for code snippets (non-commands) - Update imports from @heroku-cli/color to @heroku/heroku-cli-util - Replace color.configVar() with color.code() for config variable names Files updated (27 total): - commands/accounts/current.ts - Auth token command examples - commands/apps/stacks/set.ts - Stack migration commands - commands/auth/token.ts - Token display commands - commands/certs/index.ts - Certificate management commands - commands/container/* (pull, push, release, rm, run) - Container commands - commands/domains/add.ts, commands/domains/index.ts - Domain commands - commands/pg/backups/capture.ts - Backup commands - commands/ps/restart.ts, commands/ps/stop.ts - Process commands - commands/releases/retry.ts - Release commands - commands/run/detached.ts - Run commands - commands/spaces/create.ts, commands/spaces/vpn/connect.ts - Space commands - commands/teams/index.ts - Team commands - lib/addons/create_addon.ts, lib/addons/destroy_addon.ts - Addon commands - lib/container/helpers.ts - Container helper commands - lib/pg/backups.ts, lib/pg/push_pull.ts, lib/pg/util.ts - PG commands - test/unit/commands/container/push.unit.test.ts - Test updates - test/unit/commands/container/release.unit.test.ts - Test updates
67f1205 to
b0a445b
Compare
This was referenced Jan 23, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates from
color.cmd()tocolor.command()for CLI command references in user-facing messages. This is part 1 of the command migration (PR 14) in the systematic migration from@heroku-cli/colorto@heroku/heroku-cli-utilwith semantic color functions.This PR focuses on files that were already using
@heroku/heroku-cli-utilor had straightforward migrations. Additional PRs will follow for the remaining changes.Changes Made
color.cmd()withcolor.command()for command examples in messagescolor.cmd()withcolor.code()for code snippets that aren't commands@heroku-cli/colorto@heroku/heroku-cli-utilTest Files:
test/unit/commands/container/push.unit.test.tstest/unit/commands/container/release.unit.test.tsType of Change
Breaking Changes (major semver update)
!after your change type to denote a change that breaks current behaviorFeature Additions (minor semver update)
Patch Updates (patch semver update)
Testing
Notes:
This PR updates command reference formatting in user-facing messages. The
color.command()function displays commands with a white-on-gray background and bold text for better visibility.Steps:
color.code()appropriatelyRelated Issues
https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002T2hvTYAR/view