Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e71188b

Browse files
author
Massimiliano Pippi
committedDec 19, 2019
run protoc on settings interface, regenerate code
1 parent ea2cf98 commit e71188b

File tree

11 files changed

+779
-311
lines changed

11 files changed

+779
-311
lines changed
 

‎Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tasks:
66
cmds:
77
- '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/commands/*.proto'
88
- '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/monitor/*.proto'
9+
- '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/settings/*.proto'
910

1011
build:
1112
desc: Build the project

‎rpc/commands/board.pb.go

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/commands.pb.go

Lines changed: 64 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/common.pb.go

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/compile.pb.go

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/core.pb.go

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/lib.pb.go

Lines changed: 76 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/commands/upload.pb.go

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/monitor/monitor.pb.go

Lines changed: 23 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/settings/settings.pb.go

Lines changed: 464 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rpc/settings/settings.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ package cc.arduino.cli.settings;
2020
option go_package = "github.com/arduino/arduino-cli/rpc/settings";
2121

2222
service Settings {
23-
rpc GetAll(GetAllRequest) returns (AllSettings);
24-
rpc SetAll(AllSettings) returns (SetAllResponse);
23+
rpc GetAll(GetAllRequest) returns (RawData);
24+
rpc Merge(RawData) returns (MergeResponse);
2525
rpc GetValue(GetValueRequest) returns (Value);
2626
rpc SetValue(Value) returns (SetValueResponse);
2727
}
2828

29-
message AllSettings {
29+
message RawData {
3030
string jsonData = 1;
3131
}
3232

@@ -37,5 +37,5 @@ message Value {
3737

3838
message GetAllRequest {}
3939
message GetValueRequest { string key = 1; }
40-
message SetAllResponse {}
40+
message MergeResponse {}
4141
message SetValueResponse {}

0 commit comments

Comments
 (0)
Please sign in to comment.