Skip to content

feat: add @primer/cli package - #8514

Draft
joshblack wants to merge 14 commits into
mainfrom
feat/add-cli-oct-6-2026
Draft

joshblack wants to merge 14 commits into
mainfrom
feat/add-cli-oct-6-2026

Conversation

@joshblack

@joshblack joshblack commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Reference: github/primer#7202

Add @primer/cli for exploring Primer components, guidelines, icons, patterns, scenarios, and design tokens from the terminal.

CLI behavior tests statically import leaf commands and keep network requests and output mocked. A separate routing suite verifies dispatch with leaf handlers stubbed, so cold lazy imports no longer run inside the behavior tests' timeout.

Changelog

New

  • Add the @primer/cli package and primer command.
  • Add lightweight routing coverage for the lazy command tree.

Changed

  • Update CLI behavior tests to exercise leaf commands directly while preserving argument parsing, validation, output, and error coverage.
  • Document the CLI testing approach in the contributor testing guide.

Removed

None.

Rollout strategy

  • None

@changeset-bot

changeset-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 26a73b1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions github-actions Bot added the staff Author is a staff member label Oct 7, 2026
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 9560da90-256a-48e9-84bb-a76138fd4be7
@github-actions
github-actions Bot temporarily deployed to storybook-preview-8514 October 7, 2026 16:17 Inactive
@joshblack joshblack added skip changeset This change does not need a changelog integration-tests: skipped manually Changes in this PR do not require an integration test labels Oct 7, 2026
Clarify testing instructions for @primer/cli and interaction tests.

This branch was successfully deployed

2 active deployments
storybook-preview-8514 — 26a73b18 Deployed Oct 13, 2026 by github-actions[bot]
github-pages — 26a73b18 Deployed Oct 13, 2026 by joshblack via deploy-preview #33640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants