Closed
Description
As I've talked about in a previous issue, I'm in the process of replacing a couple thousand lines of perl, bash, and powershell with a thin set of wrappers around arduino-cli. For the most part, I'm really happy with how much code I get to delete.
I've just hit a place where I'm not sure I see a clean way to do what I want.
Without depending on a json parser, I don't currently see a reasonable way to answer the question "what is the full path to the serial port for the connected board (or boards) with fqbn $FQBN?"
One way to get what I need might be if arduino-cli board list
honored the --fqbn flag and used the result as a filter for the list of ports found.
I have an additional wrinkle that I'll bring up in a new related issue.