@@ -18,19 +18,18 @@ syntax = "proto3";
18
18
19
19
package cc.arduino.cli.commands.v1 ;
20
20
21
- option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands" ;
22
-
23
- import "google/rpc/status.proto" ;
24
-
25
- import "cc/arduino/cli/commands/v1/common.proto" ;
26
21
import "cc/arduino/cli/commands/v1/board.proto" ;
22
+ import "cc/arduino/cli/commands/v1/common.proto" ;
27
23
import "cc/arduino/cli/commands/v1/compile.proto" ;
28
24
import "cc/arduino/cli/commands/v1/core.proto" ;
29
25
import "cc/arduino/cli/commands/v1/debug.proto" ;
30
- import "cc/arduino/cli/commands/v1/monitor.proto" ;
31
- import "cc/arduino/cli/commands/v1/upload.proto" ;
32
26
import "cc/arduino/cli/commands/v1/lib.proto" ;
27
+ import "cc/arduino/cli/commands/v1/monitor.proto" ;
33
28
import "cc/arduino/cli/commands/v1/settings.proto" ;
29
+ import "cc/arduino/cli/commands/v1/upload.proto" ;
30
+ import "google/rpc/status.proto" ;
31
+
32
+ option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands" ;
34
33
35
34
// The main Arduino Platform service API
36
35
service ArduinoCoreService {
@@ -48,8 +47,7 @@ service ArduinoCoreService {
48
47
rpc UpdateIndex (UpdateIndexRequest ) returns (stream UpdateIndexResponse ) {}
49
48
50
49
// Update libraries index
51
- rpc UpdateLibrariesIndex (UpdateLibrariesIndexRequest )
52
- returns (stream UpdateLibrariesIndexResponse ) {}
50
+ rpc UpdateLibrariesIndex (UpdateLibrariesIndexRequest ) returns (stream UpdateLibrariesIndexResponse ) {}
53
51
54
52
// Get the version of Arduino CLI in use.
55
53
rpc Version (VersionRequest ) returns (VersionResponse ) {}
@@ -66,8 +64,7 @@ service ArduinoCoreService {
66
64
// Sets the sketch default FQBN and Port Address/Protocol in
67
65
// the sketch project file (sketch.yaml). These metadata can be retrieved
68
66
// using LoadSketch.
69
- rpc SetSketchDefaults (SetSketchDefaultsRequest )
70
- returns (SetSketchDefaultsResponse ) {}
67
+ rpc SetSketchDefaults (SetSketchDefaultsRequest ) returns (SetSketchDefaultsResponse ) {}
71
68
72
69
// BOARD COMMANDS
73
70
// --------------
@@ -85,87 +82,69 @@ service ArduinoCoreService {
85
82
rpc BoardSearch (BoardSearchRequest ) returns (BoardSearchResponse );
86
83
87
84
// List boards connection and disconnected events.
88
- rpc BoardListWatch (BoardListWatchRequest )
89
- returns (stream BoardListWatchResponse );
85
+ rpc BoardListWatch (BoardListWatchRequest ) returns (stream BoardListWatchResponse );
90
86
91
87
// Compile an Arduino sketch.
92
88
rpc Compile (CompileRequest ) returns (stream CompileResponse );
93
89
94
90
// Download and install a platform and its tool dependencies.
95
- rpc PlatformInstall (PlatformInstallRequest )
96
- returns (stream PlatformInstallResponse );
91
+ rpc PlatformInstall (PlatformInstallRequest ) returns (stream PlatformInstallResponse );
97
92
98
93
// Download a platform and its tool dependencies to the `staging/packages`
99
94
// subdirectory of the data directory.
100
- rpc PlatformDownload (PlatformDownloadRequest )
101
- returns (stream PlatformDownloadResponse );
95
+ rpc PlatformDownload (PlatformDownloadRequest ) returns (stream PlatformDownloadResponse );
102
96
103
97
// Uninstall a platform as well as its tool dependencies that are not used by
104
98
// other installed platforms.
105
- rpc PlatformUninstall (PlatformUninstallRequest )
106
- returns (stream PlatformUninstallResponse );
99
+ rpc PlatformUninstall (PlatformUninstallRequest ) returns (stream PlatformUninstallResponse );
107
100
108
101
// Upgrade an installed platform to the latest version.
109
- rpc PlatformUpgrade (PlatformUpgradeRequest )
110
- returns (stream PlatformUpgradeResponse );
102
+ rpc PlatformUpgrade (PlatformUpgradeRequest ) returns (stream PlatformUpgradeResponse );
111
103
112
104
// Upload a compiled sketch to a board.
113
105
rpc Upload (UploadRequest ) returns (stream UploadResponse );
114
106
115
107
// Upload a compiled sketch to a board using a programmer.
116
- rpc UploadUsingProgrammer (UploadUsingProgrammerRequest )
117
- returns (stream UploadUsingProgrammerResponse );
108
+ rpc UploadUsingProgrammer (UploadUsingProgrammerRequest ) returns (stream UploadUsingProgrammerResponse );
118
109
119
110
// Returns the list of users fields necessary to upload to that board
120
111
// using the specified protocol.
121
- rpc SupportedUserFields (SupportedUserFieldsRequest )
122
- returns (SupportedUserFieldsResponse );
112
+ rpc SupportedUserFields (SupportedUserFieldsRequest ) returns (SupportedUserFieldsResponse );
123
113
124
114
// List programmers available for a board.
125
- rpc ListProgrammersAvailableForUpload (
126
- ListProgrammersAvailableForUploadRequest )
127
- returns (ListProgrammersAvailableForUploadResponse );
115
+ rpc ListProgrammersAvailableForUpload (ListProgrammersAvailableForUploadRequest ) returns (ListProgrammersAvailableForUploadResponse );
128
116
129
117
// Burn bootloader to a board.
130
- rpc BurnBootloader (BurnBootloaderRequest )
131
- returns (stream BurnBootloaderResponse );
118
+ rpc BurnBootloader (BurnBootloaderRequest ) returns (stream BurnBootloaderResponse );
132
119
133
120
// Search for a platform in the platforms indexes.
134
121
rpc PlatformSearch (PlatformSearchRequest ) returns (PlatformSearchResponse );
135
122
136
123
// Download the archive file of an Arduino library in the libraries index to
137
124
// the staging directory.
138
- rpc LibraryDownload (LibraryDownloadRequest )
139
- returns (stream LibraryDownloadResponse );
125
+ rpc LibraryDownload (LibraryDownloadRequest ) returns (stream LibraryDownloadResponse );
140
126
141
127
// Download and install an Arduino library from the libraries index.
142
- rpc LibraryInstall (LibraryInstallRequest )
143
- returns (stream LibraryInstallResponse );
128
+ rpc LibraryInstall (LibraryInstallRequest ) returns (stream LibraryInstallResponse );
144
129
145
130
// Upgrade a library to the newest version available.
146
- rpc LibraryUpgrade (LibraryUpgradeRequest )
147
- returns (stream LibraryUpgradeResponse );
131
+ rpc LibraryUpgrade (LibraryUpgradeRequest ) returns (stream LibraryUpgradeResponse );
148
132
149
133
// Install a library from a Zip File
150
- rpc ZipLibraryInstall (ZipLibraryInstallRequest )
151
- returns (stream ZipLibraryInstallResponse );
134
+ rpc ZipLibraryInstall (ZipLibraryInstallRequest ) returns (stream ZipLibraryInstallResponse );
152
135
153
136
// Download and install a library from a git url
154
- rpc GitLibraryInstall (GitLibraryInstallRequest )
155
- returns (stream GitLibraryInstallResponse );
137
+ rpc GitLibraryInstall (GitLibraryInstallRequest ) returns (stream GitLibraryInstallResponse );
156
138
157
139
// Uninstall an Arduino library.
158
- rpc LibraryUninstall (LibraryUninstallRequest )
159
- returns (stream LibraryUninstallResponse );
140
+ rpc LibraryUninstall (LibraryUninstallRequest ) returns (stream LibraryUninstallResponse );
160
141
161
142
// Upgrade all installed Arduino libraries to the newest version available.
162
- rpc LibraryUpgradeAll (LibraryUpgradeAllRequest )
163
- returns (stream LibraryUpgradeAllResponse );
143
+ rpc LibraryUpgradeAll (LibraryUpgradeAllRequest ) returns (stream LibraryUpgradeAllResponse );
164
144
165
145
// List the recursive dependencies of a library, as defined by the `depends`
166
146
// field of the library.properties files.
167
- rpc LibraryResolveDependencies (LibraryResolveDependenciesRequest )
168
- returns (LibraryResolveDependenciesResponse );
147
+ rpc LibraryResolveDependencies (LibraryResolveDependenciesRequest ) returns (LibraryResolveDependenciesResponse );
169
148
170
149
// Search the Arduino libraries index for libraries.
171
150
rpc LibrarySearch (LibrarySearchRequest ) returns (LibrarySearchResponse );
@@ -177,49 +156,39 @@ service ArduinoCoreService {
177
156
rpc Monitor (stream MonitorRequest ) returns (stream MonitorResponse );
178
157
179
158
// Returns the parameters that can be set in the MonitorRequest calls
180
- rpc EnumerateMonitorPortSettings (EnumerateMonitorPortSettingsRequest )
181
- returns (EnumerateMonitorPortSettingsResponse );
159
+ rpc EnumerateMonitorPortSettings (EnumerateMonitorPortSettingsRequest ) returns (EnumerateMonitorPortSettingsResponse );
182
160
183
161
// Start a debug session and communicate with the debugger tool.
184
162
rpc Debug (stream DebugRequest ) returns (stream DebugResponse ) {}
185
163
186
164
// Determine if debugging is suported given a specific configuration.
187
- rpc IsDebugSupported (IsDebugSupportedRequest )
188
- returns (IsDebugSupportedResponse ) {}
165
+ rpc IsDebugSupported (IsDebugSupportedRequest ) returns (IsDebugSupportedResponse ) {}
189
166
190
167
// Query the debugger information given a specific configuration.
191
168
rpc GetDebugConfig (GetDebugConfigRequest ) returns (GetDebugConfigResponse ) {}
192
169
193
170
// Check for updates to the Arduino CLI.
194
- rpc CheckForArduinoCLIUpdates (CheckForArduinoCLIUpdatesRequest )
195
- returns (CheckForArduinoCLIUpdatesResponse );
171
+ rpc CheckForArduinoCLIUpdates (CheckForArduinoCLIUpdatesRequest ) returns (CheckForArduinoCLIUpdatesResponse );
196
172
197
173
// Clean the download cache directory (where archives are downloaded).
198
- rpc CleanDownloadCacheDirectory (CleanDownloadCacheDirectoryRequest )
199
- returns (CleanDownloadCacheDirectoryResponse );
174
+ rpc CleanDownloadCacheDirectory (CleanDownloadCacheDirectoryRequest ) returns (CleanDownloadCacheDirectoryResponse );
200
175
201
176
// Writes the settings currently stored in memory in a YAML file
202
- rpc ConfigurationSave (ConfigurationSaveRequest )
203
- returns (ConfigurationSaveResponse );
177
+ rpc ConfigurationSave (ConfigurationSaveRequest ) returns (ConfigurationSaveResponse );
204
178
205
179
// Read the settings from a YAML file
206
- rpc ConfigurationOpen (ConfigurationOpenRequest )
207
- returns (ConfigurationOpenResponse );
180
+ rpc ConfigurationOpen (ConfigurationOpenRequest ) returns (ConfigurationOpenResponse );
208
181
209
- rpc ConfigurationGet (ConfigurationGetRequest )
210
- returns (ConfigurationGetResponse );
182
+ rpc ConfigurationGet (ConfigurationGetRequest ) returns (ConfigurationGetResponse );
211
183
212
184
// Enumerate all the keys/values pairs available in the configuration
213
- rpc SettingsEnumerate (SettingsEnumerateRequest )
214
- returns (SettingsEnumerateResponse );
185
+ rpc SettingsEnumerate (SettingsEnumerateRequest ) returns (SettingsEnumerateResponse );
215
186
216
187
// Get a single configuration value
217
- rpc SettingsGetValue (SettingsGetValueRequest )
218
- returns (SettingsGetValueResponse );
188
+ rpc SettingsGetValue (SettingsGetValueRequest ) returns (SettingsGetValueResponse );
219
189
220
190
// Set a single configuration value
221
- rpc SettingsSetValue (SettingsSetValueRequest )
222
- returns (SettingsSetValueResponse );
191
+ rpc SettingsSetValue (SettingsSetValueRequest ) returns (SettingsSetValueResponse );
223
192
}
224
193
225
194
message CreateRequest {}
0 commit comments