File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
29
29
"github.com/arduino/arduino-cli/i18n"
30
30
"github.com/arduino/arduino-cli/internal/cli/arguments"
31
31
"github.com/arduino/arduino-cli/internal/cli/feedback"
32
+ "github.com/arduino/arduino-cli/internal/cli/feedback/result"
32
33
"github.com/arduino/arduino-cli/internal/cli/instance"
33
34
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
34
35
"github.com/arduino/arduino-cli/version"
@@ -199,15 +200,15 @@ func runUploadCommand(args []string, uploadFieldsArgs map[string]string) {
199
200
feedback .PrintResult (& uploadResult {
200
201
Stdout : io .Stdout ,
201
202
Stderr : io .Stderr ,
202
- UpdatedUploadPort : res .UpdatedUploadPort ,
203
+ UpdatedUploadPort : result . NewPort ( res .GetUpdatedUploadPort ()) ,
203
204
})
204
205
}
205
206
}
206
207
207
208
type uploadResult struct {
208
- Stdout string `json:"stdout"`
209
- Stderr string `json:"stderr"`
210
- UpdatedUploadPort * rpc .Port `json:"updated_upload_port,omitempty"`
209
+ Stdout string `json:"stdout"`
210
+ Stderr string `json:"stderr"`
211
+ UpdatedUploadPort * result .Port `json:"updated_upload_port,omitempty"`
211
212
}
212
213
213
214
func (r * uploadResult ) Data () interface {} {
You can’t perform that action at this time.
0 commit comments