@@ -23,8 +23,6 @@ import (
23
23
"sync/atomic"
24
24
25
25
"github.com/arduino/arduino-cli/commands/cmderrors"
26
- "github.com/arduino/arduino-cli/commands/monitor"
27
- "github.com/arduino/arduino-cli/commands/sketch"
28
26
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
29
27
"github.com/sirupsen/logrus"
30
28
"google.golang.org/grpc/metadata"
@@ -154,19 +152,19 @@ func (s *ArduinoCoreServerImpl) Version(ctx context.Context, req *rpc.VersionReq
154
152
155
153
// NewSketch FIXMEDOC
156
154
func (s * ArduinoCoreServerImpl ) NewSketch (ctx context.Context , req * rpc.NewSketchRequest ) (* rpc.NewSketchResponse , error ) {
157
- resp , err := sketch . NewSketch (ctx , req )
155
+ resp , err := NewSketch (ctx , req )
158
156
return resp , convertErrorToRPCStatus (err )
159
157
}
160
158
161
159
// LoadSketch FIXMEDOC
162
160
func (s * ArduinoCoreServerImpl ) LoadSketch (ctx context.Context , req * rpc.LoadSketchRequest ) (* rpc.LoadSketchResponse , error ) {
163
- resp , err := sketch . LoadSketch (ctx , req )
161
+ resp , err := LoadSketch (ctx , req )
164
162
return & rpc.LoadSketchResponse {Sketch : resp }, convertErrorToRPCStatus (err )
165
163
}
166
164
167
165
// SetSketchDefaults FIXMEDOC
168
166
func (s * ArduinoCoreServerImpl ) SetSketchDefaults (ctx context.Context , req * rpc.SetSketchDefaultsRequest ) (* rpc.SetSketchDefaultsResponse , error ) {
169
- resp , err := sketch . SetSketchDefaults (ctx , req )
167
+ resp , err := SetSketchDefaults (ctx , req )
170
168
return resp , convertErrorToRPCStatus (err )
171
169
}
172
170
@@ -429,7 +427,7 @@ func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.Librar
429
427
430
428
// ArchiveSketch FIXMEDOC
431
429
func (s * ArduinoCoreServerImpl ) ArchiveSketch (ctx context.Context , req * rpc.ArchiveSketchRequest ) (* rpc.ArchiveSketchResponse , error ) {
432
- resp , err := sketch . ArchiveSketch (ctx , req )
430
+ resp , err := ArchiveSketch (ctx , req )
433
431
return resp , convertErrorToRPCStatus (err )
434
432
}
435
433
@@ -455,7 +453,7 @@ func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallRequ
455
453
456
454
// EnumerateMonitorPortSettings FIXMEDOC
457
455
func (s * ArduinoCoreServerImpl ) EnumerateMonitorPortSettings (ctx context.Context , req * rpc.EnumerateMonitorPortSettingsRequest ) (* rpc.EnumerateMonitorPortSettingsResponse , error ) {
458
- resp , err := monitor . EnumerateMonitorPortSettings (ctx , req )
456
+ resp , err := EnumerateMonitorPortSettings (ctx , req )
459
457
return resp , convertErrorToRPCStatus (err )
460
458
}
461
459
@@ -473,7 +471,7 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
473
471
if openReq == nil {
474
472
return & cmderrors.InvalidInstanceError {}
475
473
}
476
- portProxy , _ , err := monitor . Monitor (stream .Context (), openReq )
474
+ portProxy , _ , err := Monitor (stream .Context (), openReq )
477
475
if err != nil {
478
476
return err
479
477
}
0 commit comments