-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Description
Add support for exporting Bill of Materials (BOM) in CSV format via the command line.
This feature was originally requested in the archived v0.0.x-cli repository (issue #183) and should be implemented in the new CLI.
Proposed Usage
tsci export path/to/example.tsx --format bom-csvOr with output path:
tsci export path/to/example.tsx --format bom-csv --output path/to/bom.csvImplementation Notes
- The
circuit-json-to-bom-csvpackage already exists and provides the necessary conversion functions - This should follow the same pattern as other export formats (schematic-svg, pcb-svg, etc.)
- Add "bom-csv" to the
ALLOWED_EXPORT_FORMATSarray - Add ".bom.csv" to the
OUTPUT_EXTENSIONSmapping - Use
convertCircuitJsonToBomRowsandconvertBomRowsToCsvfrom the package
Benefits
This would allow users to generate a bill of materials from their circuit files via CLI, which is useful for:
- Automated build processes
- Cost estimation
- Component procurement
- Integration with other tools
Related
This is equivalent to the "File > Export -> Bill of Materials CSV" functionality in the GUI.
Original issue from archived repo: tscircuit/v0.0.x-cli#183
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels