Skip to content

Commit 928d9d3

Browse files
author
Massimiliano Pippi
committed
do not pollute stdout when json format is selected
1 parent 12d92e0 commit 928d9d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/core/search.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ func runSearchCommand(cmd *cobra.Command, args []string) {
5151
logrus.Info("Executing `arduino core search`")
5252

5353
arguments := strings.ToLower(strings.Join(args, " "))
54-
feedback.Printf("Searching for platforms matching '%s'", arguments)
54+
55+
if globals.OutputFormat != "json" {
56+
feedback.Printf("Searching for platforms matching '%s'", arguments)
57+
}
5558

5659
resp, err := core.PlatformSearch(context.Background(), &rpc.PlatformSearchReq{
5760
Instance: instance,

0 commit comments

Comments
 (0)