Skip to content

Commit 08c0a66

Browse files
committed
Added daemon callback for Compile rpc call
1 parent 3277596 commit 08c0a66

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

commands/compile/compile.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package compile
2+
3+
import (
4+
"context"
5+
6+
"github.com/arduino/arduino-cli/rpc"
7+
)
8+
9+
func Compile(ctx context.Context, req *rpc.CompileReq) (*rpc.CompileResp, error) {
10+
return nil, nil
11+
}

daemon/daemon.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyReq
4747
func (s *ArduinoCoreServerImpl) Init(ctx context.Context, req *rpc.InitReq) (*rpc.InitResp, error) {
4848
return commands.Init(ctx, req)
4949
}
50+
51+
func (s *ArduinoCoreServerImpl) Compile(ctx context.Context, req *rpc.CompileReq) (*rpc.CompileResp, error) {
52+
return compile.Compile(ctx, req)
53+
}

0 commit comments

Comments
 (0)