Skip to content

Commit fe81896

Browse files
committed
arduino#1456 - Update .proto
1 parent fb8931c commit fe81896

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: rpc/cc/arduino/cli/commands/v1/commands.proto

+15
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ service ArduinoCoreService {
6363
// Get the version of Arduino CLI in use.
6464
rpc Version(VersionRequest) returns (VersionResponse) {}
6565

66+
// Create a new Sketch
67+
rpc NewSketch(NewSketchRequest) returns (NewSketchResponse) {}
68+
6669
// Returns all files composing a Sketch
6770
rpc LoadSketch(LoadSketchRequest) returns (LoadSketchResponse) {}
6871

@@ -267,6 +270,18 @@ message VersionResponse {
267270
string version = 1;
268271
}
269272

273+
message NewSketchRequest {
274+
// Arduino Core Service instance from the Init response.
275+
Instance instance = 1;
276+
// New sketch name
277+
string sketch_name = 2;
278+
}
279+
280+
message NewSketchResponse {
281+
// Absolute path to a main sketch file
282+
string main_file = 1;
283+
}
284+
270285
message LoadSketchRequest {
271286
// Arduino Core Service instance from the Init response.
272287
Instance instance = 1;

0 commit comments

Comments
 (0)