Skip to content

Add --jlcpcb/--lcsc/--tscircuit flags to tsci import#2125

Merged
seveibar merged 2 commits into
mainfrom
codex/add-flags-to-tsci-import-command
Feb 26, 2026
Merged

Add --jlcpcb/--lcsc/--tscircuit flags to tsci import#2125
seveibar merged 2 commits into
mainfrom
codex/add-flags-to-tsci-import-command

Conversation

@seveibar

Copy link
Copy Markdown
Contributor

Motivation

  • Allow users to filter the sources when running tsci import so they can target JLCPCB or the tscircuit registry explicitly.

Description

  • Added --jlcpcb, --lcsc (alias), and --tscircuit options to the import command in cli/import/register.ts.
  • Updated the import action signature to accept parsed opts and compute hasFilters, searchJlc, and searchTscircuit booleans.
  • Conditionalized the registry and JLCPCB search calls to only run when their corresponding filters are active while preserving the previous default of searching both sources when no filters are provided.
  • Kept the interactive selection and import/install flows unchanged, only feeding them results from the filtered searches.

Testing

  • Ran typecheck with bunx tsc --noEmit and it succeeded.
  • Ran the import test with bun test tests/cli/import/import.test.ts which reports the test as skipped (no failures).
  • Ran formatting with bun run format which completed successfully.

Codex Task

@seveibar seveibar merged commit b353f79 into main Feb 26, 2026
10 checks passed
@tscircuitbot

Copy link
Copy Markdown
Contributor

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants