Description
[If this issue belongs in a different issue tracker, please let me know.]
I think there should be some sort of written spec for sketch.json
, including what data is required as well as what data is allowed.
https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata is the only doc I can find for sketch.json.
It tells me that the two keys are 'included_libs' and 'cpu', but doesn't describe the formats of these two keys or whether any other keys are supported.
It's not clear whether additional data in sketch.json gets round-tripped when the file is written by arduino-cli or whether the expectation is that writes by arduino-cli board attach
are destructive.
Grepping the source of arudino-cli, I think that cpu has 3 possible keys: fqbn
, port
, and name
, with only fqbn
being required. included_libs
doesn't show up in the source anywhere.
Is there a more complete spec for sketch.json elsewhere that should be linked into the docs?