Missing handling of new output formats #1635
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Bug Report
Current behavior
Some output is not printed in the format specified by the user when they use the new
jsonmini
oryaml
options (#1586, #1600) with the--format
flag.This misformatted output breaks machine readability.
For example:
The code here does not handle the new formats:
arduino-cli/cli/output/rpc_progress.go
Line 36 in 530e671
Expected behavior
All output is printed in the specified format.
A single centralized function is used to determine when output is set to a machine readable format instead of the current jumble of "magic strings" scattered throughout the codebase, which handle only "json".
Environment
Additional context
#1872 is one specific instance of this general bug.
Originally reported (peripherally) at #1624
The text was updated successfully, but these errors were encountered: