main: change -json flag to match upstream Go

This changes the -json flag for build/run/flash/gdb etc commands to not
print `compileopts.Config` but instead match upstream Go and print build
errors in a structured way.

For more details, see the proposal:
https://github.com/golang/go/issues/62067
This commit is contained in:
Ayke van Laethem
2025-04-18 11:49:41 +02:00
committed by Ron Evans
parent aa63f26f36
commit c2765e9eca
3 changed files with 73 additions and 29 deletions
-1
View File
@@ -53,7 +53,6 @@ type Options struct {
Programmer string
OpenOCDCommands []string
LLVMFeatures string
PrintJSON bool
Monitor bool
BaudRate int
Timeout time.Duration