File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,35 @@ package cc.arduino.cli.settings;
1919
2020option go_package = "github.com/arduino/arduino-cli/rpc/settings" ;
2121
22+ // The Settings service provides an interface to Arduino CLI's configuration
23+ // options
2224service Settings {
25+ // List all the settings.
2326 rpc GetAll (GetAllRequest ) returns (RawData );
27+ // Set multiple settings values at once.
2428 rpc Merge (RawData ) returns (MergeResponse );
29+ // Get the value of a specific setting.
2530 rpc GetValue (GetValueRequest ) returns (Value );
31+ // Set the value of a specific setting.
2632 rpc SetValue (Value ) returns (SetValueResponse );
2733}
2834
2935message RawData {
36+ // The settings, in JSON format.
3037 string jsonData = 1 ;
3138}
3239
3340message Value {
41+ // The key of the setting.
3442 string key = 1 ;
43+ // The setting, in JSON format.
3544 string jsonData = 2 ;
3645}
3746
3847message GetAllRequest {}
39- message GetValueRequest { string key = 1 ; }
48+ message GetValueRequest {
49+ // The key of the setting.
50+ string key = 1 ;
51+ }
4052message MergeResponse {}
4153message SetValueResponse {}
You can’t perform that action at this time.
0 commit comments