Skip to content

Commit 3ae938f

Browse files
Add DeleteRequest and DeleteResponse to gRPC
1 parent eca9d9a commit 3ae938f

File tree

3 files changed

+237
-52
lines changed

3 files changed

+237
-52
lines changed

rpc/cc/arduino/cli/settings/v1/settings.pb.go

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

rpc/cc/arduino/cli/settings/v1/settings.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ service SettingsService {
3636

3737
// Writes to file settings currently stored in memory
3838
rpc Write(WriteRequest) returns (WriteResponse);
39+
40+
// Deletes an entry and rewrites the file settings
41+
rpc Delete(DeleteRequest) returns (DeleteResponse);
3942
}
4043

4144
message GetAllResponse {
@@ -78,4 +81,13 @@ message WriteRequest {
7881
string file_path = 1;
7982
}
8083

81-
message WriteResponse {}
84+
message WriteResponse {}
85+
86+
message DeleteRequest {
87+
// The key of the setting to delete.
88+
string key = 1;
89+
// Path to settings file (e.g. /path/to/arduino-cli.yaml)
90+
string file_path = 2;
91+
}
92+
93+
message DeleteResponse {}

0 commit comments

Comments
 (0)