Switch preferred parts to JSON format json
authorKeith Packard <keithp@keithp.com>
Thu, 2 Nov 2023 04:35:45 +0000 (21:35 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 2 Nov 2023 04:35:45 +0000 (21:35 -0700)
commit0b04b6f2c88f6327466e72faad59f808a82a3d0e
treeb89354e0f2f6518bdef0c9a86de633a87c5dc378
parentabaa6dfafad2862e5d8b8825cd84298dcb76429f
Switch preferred parts to JSON format

This should make the file a bit easier to add fields to where
necessary and provide some validation during use.

To search the file for a string, use the new 'pgrep' command
in bin:

    $ bin/pgrep SAMD21G17D preferred.json
    {
    "device": "IC",
    "footprint": "vqfn-48",
    "loadstatus": "smt",
    "mfg_part_number": "ATSAMD21G17D-MUT",
    "provided": "yes",
    "value": "SAMD21G17D",
    "vendor": "mouser",
    "vendor_part_number": "556-ATSAMD21G17D-MUT"
    }

Signed-off-by: Keith Packard <keithp@keithp.com>
bin/fillpartslist.5c [new file with mode: 0755]
bin/parts-json [new file with mode: 0755]
bin/pgrep [new file with mode: 0755]
pcb-rnd.mk
pcb.mk
preferred.json [new file with mode: 0644]