Skip to content

refactor(cli-test)!: rename env add/remove to env set/unset#2545

Draft
zimeg wants to merge 4 commits intomainfrom
cli-test-env-set-unset
Draft

refactor(cli-test)!: rename env add/remove to env set/unset#2545
zimeg wants to merge 4 commits intomainfrom
cli-test-env-set-unset

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Apr 7, 2026

Summary

  • Renames env addenv set and env removeenv unset commands in @slack/cli-test
  • Renames SLACK_TRACE_ENV_ADD_SUCCESSSLACK_TRACE_ENV_SET_SUCCESS and SLACK_TRACE_ENV_REMOVE_SUCCESSSLACK_TRACE_ENV_UNSET_SUCCESS trace constants
  • Aligns with Slack CLI changes in feat: alias env set and env unset as primary commands slack-cli#460

Changes

  • packages/cli-test/src/utils/constants.ts — updated trace ID constants
  • packages/cli-test/src/cli/commands/env.ts — renamed addset, removeunset functions and CLI subcommands
  • packages/cli-test/src/cli/commands/env.test.ts — updated tests
  • Regenerated docs

Test plan

  • npm test --workspace=packages/cli-test — all 28 tests pass
  • npx biome check — no lint issues
  • No stale references to old constants remain

🤖 Generated with Claude Code

Co-Authored-By: Claude svc-devxp-claude@slack-corp.com

Aligns with Slack CLI rename of `env add` → `env set` and
`env remove` → `env unset` from slackapi/slack-cli#460.

- Rename `SLACK_TRACE_ENV_ADD_SUCCESS` → `SLACK_TRACE_ENV_SET_SUCCESS`
- Rename `SLACK_TRACE_ENV_REMOVE_SUCCESS` → `SLACK_TRACE_ENV_UNSET_SUCCESS`
- Rename exported `add`/`remove` functions to `set`/`unset`
- Update tests and regenerate docs

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg requested review from a team as code owners April 7, 2026 18:17
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: 2ffa200

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/cli-test Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.39%. Comparing base (700a636) to head (2ffa200).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2545      +/-   ##
==========================================
- Coverage   87.40%   87.39%   -0.01%     
==========================================
  Files          62       62              
  Lines       10235    10235              
  Branches      409      409              
==========================================
- Hits         8946     8945       -1     
- Misses       1267     1268       +1     
  Partials       22       22              
Flag Coverage Δ
cli-hooks 87.39% <60.00%> (-0.01%) ⬇️
cli-test 87.39% <60.00%> (-0.01%) ⬇️
logger 87.39% <60.00%> (-0.01%) ⬇️
oauth 87.39% <60.00%> (-0.01%) ⬇️
socket-mode 87.39% <60.00%> (-0.01%) ⬇️
web-api 87.39% <60.00%> (-0.01%) ⬇️
webhook 87.39% <60.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg changed the title refactor(cli-test): rename env add/remove to env set/unset refactor(cli-test)!: rename env add/remove to env set/unset Apr 7, 2026
@zimeg zimeg added the pkg:cli-test applies to `@slack/cli-test` label Apr 7, 2026
@zimeg zimeg self-assigned this Apr 7, 2026
@zimeg zimeg added this to the cli-test@next milestone Apr 7, 2026
@zimeg zimeg marked this pull request as draft April 7, 2026 18:27
@zimeg zimeg added the enhancement M-T: A feature request for new functionality label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality pkg:cli-test applies to `@slack/cli-test` semver:major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant