@@ -18,19 +18,18 @@ syntax = "proto3";
1818
1919package cc.arduino.cli.commands.v1 ;
2020
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" ;
2621import "cc/arduino/cli/commands/v1/board.proto" ;
22+ import "cc/arduino/cli/commands/v1/common.proto" ;
2723import "cc/arduino/cli/commands/v1/compile.proto" ;
2824import "cc/arduino/cli/commands/v1/core.proto" ;
2925import "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" ;
3226import "cc/arduino/cli/commands/v1/lib.proto" ;
27+ import "cc/arduino/cli/commands/v1/monitor.proto" ;
3328import "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" ;
3433
3534// The main Arduino Platform service API
3635service ArduinoCoreService {
@@ -48,8 +47,7 @@ service ArduinoCoreService {
4847 rpc UpdateIndex (UpdateIndexRequest ) returns (stream UpdateIndexResponse ) {}
4948
5049 // Update libraries index
51- rpc UpdateLibrariesIndex (UpdateLibrariesIndexRequest )
52- returns (stream UpdateLibrariesIndexResponse ) {}
50+ rpc UpdateLibrariesIndex (UpdateLibrariesIndexRequest ) returns (stream UpdateLibrariesIndexResponse ) {}
5351
5452 // Get the version of Arduino CLI in use.
5553 rpc Version (VersionRequest ) returns (VersionResponse ) {}
@@ -66,8 +64,7 @@ service ArduinoCoreService {
6664 // Sets the sketch default FQBN and Port Address/Protocol in
6765 // the sketch project file (sketch.yaml). These metadata can be retrieved
6866 // using LoadSketch.
69- rpc SetSketchDefaults (SetSketchDefaultsRequest )
70- returns (SetSketchDefaultsResponse ) {}
67+ rpc SetSketchDefaults (SetSketchDefaultsRequest ) returns (SetSketchDefaultsResponse ) {}
7168
7269 // BOARD COMMANDS
7370 // --------------
@@ -85,87 +82,69 @@ service ArduinoCoreService {
8582 rpc BoardSearch (BoardSearchRequest ) returns (BoardSearchResponse );
8683
8784 // List boards connection and disconnected events.
88- rpc BoardListWatch (BoardListWatchRequest )
89- returns (stream BoardListWatchResponse );
85+ rpc BoardListWatch (BoardListWatchRequest ) returns (stream BoardListWatchResponse );
9086
9187 // Compile an Arduino sketch.
9288 rpc Compile (CompileRequest ) returns (stream CompileResponse );
9389
9490 // Download and install a platform and its tool dependencies.
95- rpc PlatformInstall (PlatformInstallRequest )
96- returns (stream PlatformInstallResponse );
91+ rpc PlatformInstall (PlatformInstallRequest ) returns (stream PlatformInstallResponse );
9792
9893 // Download a platform and its tool dependencies to the `staging/packages`
9994 // subdirectory of the data directory.
100- rpc PlatformDownload (PlatformDownloadRequest )
101- returns (stream PlatformDownloadResponse );
95+ rpc PlatformDownload (PlatformDownloadRequest ) returns (stream PlatformDownloadResponse );
10296
10397 // Uninstall a platform as well as its tool dependencies that are not used by
10498 // other installed platforms.
105- rpc PlatformUninstall (PlatformUninstallRequest )
106- returns (stream PlatformUninstallResponse );
99+ rpc PlatformUninstall (PlatformUninstallRequest ) returns (stream PlatformUninstallResponse );
107100
108101 // Upgrade an installed platform to the latest version.
109- rpc PlatformUpgrade (PlatformUpgradeRequest )
110- returns (stream PlatformUpgradeResponse );
102+ rpc PlatformUpgrade (PlatformUpgradeRequest ) returns (stream PlatformUpgradeResponse );
111103
112104 // Upload a compiled sketch to a board.
113105 rpc Upload (UploadRequest ) returns (stream UploadResponse );
114106
115107 // 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 );
118109
119110 // Returns the list of users fields necessary to upload to that board
120111 // using the specified protocol.
121- rpc SupportedUserFields (SupportedUserFieldsRequest )
122- returns (SupportedUserFieldsResponse );
112+ rpc SupportedUserFields (SupportedUserFieldsRequest ) returns (SupportedUserFieldsResponse );
123113
124114 // List programmers available for a board.
125- rpc ListProgrammersAvailableForUpload (
126- ListProgrammersAvailableForUploadRequest )
127- returns (ListProgrammersAvailableForUploadResponse );
115+ rpc ListProgrammersAvailableForUpload (ListProgrammersAvailableForUploadRequest ) returns (ListProgrammersAvailableForUploadResponse );
128116
129117 // Burn bootloader to a board.
130- rpc BurnBootloader (BurnBootloaderRequest )
131- returns (stream BurnBootloaderResponse );
118+ rpc BurnBootloader (BurnBootloaderRequest ) returns (stream BurnBootloaderResponse );
132119
133120 // Search for a platform in the platforms indexes.
134121 rpc PlatformSearch (PlatformSearchRequest ) returns (PlatformSearchResponse );
135122
136123 // Download the archive file of an Arduino library in the libraries index to
137124 // the staging directory.
138- rpc LibraryDownload (LibraryDownloadRequest )
139- returns (stream LibraryDownloadResponse );
125+ rpc LibraryDownload (LibraryDownloadRequest ) returns (stream LibraryDownloadResponse );
140126
141127 // 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 );
144129
145130 // Upgrade a library to the newest version available.
146- rpc LibraryUpgrade (LibraryUpgradeRequest )
147- returns (stream LibraryUpgradeResponse );
131+ rpc LibraryUpgrade (LibraryUpgradeRequest ) returns (stream LibraryUpgradeResponse );
148132
149133 // Install a library from a Zip File
150- rpc ZipLibraryInstall (ZipLibraryInstallRequest )
151- returns (stream ZipLibraryInstallResponse );
134+ rpc ZipLibraryInstall (ZipLibraryInstallRequest ) returns (stream ZipLibraryInstallResponse );
152135
153136 // Download and install a library from a git url
154- rpc GitLibraryInstall (GitLibraryInstallRequest )
155- returns (stream GitLibraryInstallResponse );
137+ rpc GitLibraryInstall (GitLibraryInstallRequest ) returns (stream GitLibraryInstallResponse );
156138
157139 // Uninstall an Arduino library.
158- rpc LibraryUninstall (LibraryUninstallRequest )
159- returns (stream LibraryUninstallResponse );
140+ rpc LibraryUninstall (LibraryUninstallRequest ) returns (stream LibraryUninstallResponse );
160141
161142 // 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 );
164144
165145 // List the recursive dependencies of a library, as defined by the `depends`
166146 // field of the library.properties files.
167- rpc LibraryResolveDependencies (LibraryResolveDependenciesRequest )
168- returns (LibraryResolveDependenciesResponse );
147+ rpc LibraryResolveDependencies (LibraryResolveDependenciesRequest ) returns (LibraryResolveDependenciesResponse );
169148
170149 // Search the Arduino libraries index for libraries.
171150 rpc LibrarySearch (LibrarySearchRequest ) returns (LibrarySearchResponse );
@@ -177,49 +156,39 @@ service ArduinoCoreService {
177156 rpc Monitor (stream MonitorRequest ) returns (stream MonitorResponse );
178157
179158 // Returns the parameters that can be set in the MonitorRequest calls
180- rpc EnumerateMonitorPortSettings (EnumerateMonitorPortSettingsRequest )
181- returns (EnumerateMonitorPortSettingsResponse );
159+ rpc EnumerateMonitorPortSettings (EnumerateMonitorPortSettingsRequest ) returns (EnumerateMonitorPortSettingsResponse );
182160
183161 // Start a debug session and communicate with the debugger tool.
184162 rpc Debug (stream DebugRequest ) returns (stream DebugResponse ) {}
185163
186164 // Determine if debugging is suported given a specific configuration.
187- rpc IsDebugSupported (IsDebugSupportedRequest )
188- returns (IsDebugSupportedResponse ) {}
165+ rpc IsDebugSupported (IsDebugSupportedRequest ) returns (IsDebugSupportedResponse ) {}
189166
190167 // Query the debugger information given a specific configuration.
191168 rpc GetDebugConfig (GetDebugConfigRequest ) returns (GetDebugConfigResponse ) {}
192169
193170 // Check for updates to the Arduino CLI.
194- rpc CheckForArduinoCLIUpdates (CheckForArduinoCLIUpdatesRequest )
195- returns (CheckForArduinoCLIUpdatesResponse );
171+ rpc CheckForArduinoCLIUpdates (CheckForArduinoCLIUpdatesRequest ) returns (CheckForArduinoCLIUpdatesResponse );
196172
197173 // Clean the download cache directory (where archives are downloaded).
198- rpc CleanDownloadCacheDirectory (CleanDownloadCacheDirectoryRequest )
199- returns (CleanDownloadCacheDirectoryResponse );
174+ rpc CleanDownloadCacheDirectory (CleanDownloadCacheDirectoryRequest ) returns (CleanDownloadCacheDirectoryResponse );
200175
201176 // Writes the settings currently stored in memory in a YAML file
202- rpc ConfigurationSave (ConfigurationSaveRequest )
203- returns (ConfigurationSaveResponse );
177+ rpc ConfigurationSave (ConfigurationSaveRequest ) returns (ConfigurationSaveResponse );
204178
205179 // Read the settings from a YAML file
206- rpc ConfigurationOpen (ConfigurationOpenRequest )
207- returns (ConfigurationOpenResponse );
180+ rpc ConfigurationOpen (ConfigurationOpenRequest ) returns (ConfigurationOpenResponse );
208181
209- rpc ConfigurationGet (ConfigurationGetRequest )
210- returns (ConfigurationGetResponse );
182+ rpc ConfigurationGet (ConfigurationGetRequest ) returns (ConfigurationGetResponse );
211183
212184 // Enumerate all the keys/values pairs available in the configuration
213- rpc SettingsEnumerate (SettingsEnumerateRequest )
214- returns (SettingsEnumerateResponse );
185+ rpc SettingsEnumerate (SettingsEnumerateRequest ) returns (SettingsEnumerateResponse );
215186
216187 // Get a single configuration value
217- rpc SettingsGetValue (SettingsGetValueRequest )
218- returns (SettingsGetValueResponse );
188+ rpc SettingsGetValue (SettingsGetValueRequest ) returns (SettingsGetValueResponse );
219189
220190 // Set a single configuration value
221- rpc SettingsSetValue (SettingsSetValueRequest )
222- returns (SettingsSetValueResponse );
191+ rpc SettingsSetValue (SettingsSetValueRequest ) returns (SettingsSetValueResponse );
223192}
224193
225194message CreateRequest {}
0 commit comments