Skip to content

Commit e1b7dcb

Browse files
author
Akos Kitta
committed
CLI cmaglie/arduino-cli#daemon_fix_and_testsuite
Signed-off-by: Akos Kitta <[email protected]>
1 parent a003831 commit e1b7dcb

File tree

7 files changed

+110
-4
lines changed

7 files changed

+110
-4
lines changed

arduino-ide-extension/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@
155155
],
156156
"arduino": {
157157
"cli": {
158-
"version": "0.24.0"
158+
"version": {
159+
"repo": "arduino-cli",
160+
"owner": "cmaglie",
161+
"commitish": "daemon_fix_and_testsuite"
162+
}
159163
},
160164
"fwuploader": {
161165
"version": "2.2.0"

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/compile_pb.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ export class CompileRequest extends jspb.Message {
9595
getEncryptKey(): string;
9696
setEncryptKey(value: string): CompileRequest;
9797

98+
getSkipLibrariesDiscovery(): boolean;
99+
setSkipLibrariesDiscovery(value: boolean): CompileRequest;
100+
98101

99102
serializeBinary(): Uint8Array;
100103
toObject(includeInstance?: boolean): CompileRequest.AsObject;
@@ -133,6 +136,7 @@ export namespace CompileRequest {
133136
keysKeychain: string,
134137
signKey: string,
135138
encryptKey: string,
139+
skipLibrariesDiscovery: boolean,
136140
}
137141
}
138142

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/compile_pb.js

+31-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.toObject = function(includeInsta
149149
libraryList: (f = jspb.Message.getRepeatedField(msg, 24)) == null ? undefined : f,
150150
keysKeychain: jspb.Message.getFieldWithDefault(msg, 25, ""),
151151
signKey: jspb.Message.getFieldWithDefault(msg, 26, ""),
152-
encryptKey: jspb.Message.getFieldWithDefault(msg, 27, "")
152+
encryptKey: jspb.Message.getFieldWithDefault(msg, 27, ""),
153+
skipLibrariesDiscovery: jspb.Message.getBooleanFieldWithDefault(msg, 28, false)
153154
};
154155

155156
if (includeInstance) {
@@ -286,6 +287,10 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.deserializeBinaryFromReader = fu
286287
var value = /** @type {string} */ (reader.readString());
287288
msg.setEncryptKey(value);
288289
break;
290+
case 28:
291+
var value = /** @type {boolean} */ (reader.readBool());
292+
msg.setSkipLibrariesDiscovery(value);
293+
break;
289294
default:
290295
reader.skipField();
291296
break;
@@ -482,6 +487,13 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.serializeBinaryToWriter = functi
482487
f
483488
);
484489
}
490+
f = message.getSkipLibrariesDiscovery();
491+
if (f) {
492+
writer.writeBool(
493+
28,
494+
f
495+
);
496+
}
485497
};
486498

487499

@@ -1016,6 +1028,24 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setEncryptKey = functi
10161028
};
10171029

10181030

1031+
/**
1032+
* optional bool skip_libraries_discovery = 28;
1033+
* @return {boolean}
1034+
*/
1035+
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.getSkipLibrariesDiscovery = function() {
1036+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false));
1037+
};
1038+
1039+
1040+
/**
1041+
* @param {boolean} value
1042+
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
1043+
*/
1044+
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setSkipLibrariesDiscovery = function(value) {
1045+
return jspb.Message.setProto3BooleanField(this, 28, value);
1046+
};
1047+
1048+
10191049

10201050
/**
10211051
* List of repeated fields within this message type.

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/core_pb.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export class PlatformInstallRequest extends jspb.Message {
2626
getSkipPostInstall(): boolean;
2727
setSkipPostInstall(value: boolean): PlatformInstallRequest;
2828

29+
getNoOverwrite(): boolean;
30+
setNoOverwrite(value: boolean): PlatformInstallRequest;
31+
2932

3033
serializeBinary(): Uint8Array;
3134
toObject(includeInstance?: boolean): PlatformInstallRequest.AsObject;
@@ -44,6 +47,7 @@ export namespace PlatformInstallRequest {
4447
architecture: string,
4548
version: string,
4649
skipPostInstall: boolean,
50+
noOverwrite: boolean,
4751
}
4852
}
4953

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/core_pb.js

+31-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.toObject = function(incl
339339
platformPackage: jspb.Message.getFieldWithDefault(msg, 2, ""),
340340
architecture: jspb.Message.getFieldWithDefault(msg, 3, ""),
341341
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
342-
skipPostInstall: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
342+
skipPostInstall: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
343+
noOverwrite: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
343344
};
344345

345346
if (includeInstance) {
@@ -397,6 +398,10 @@ proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.deserializeBinaryFromRea
397398
var value = /** @type {boolean} */ (reader.readBool());
398399
msg.setSkipPostInstall(value);
399400
break;
401+
case 6:
402+
var value = /** @type {boolean} */ (reader.readBool());
403+
msg.setNoOverwrite(value);
404+
break;
400405
default:
401406
reader.skipField();
402407
break;
@@ -462,6 +467,13 @@ proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.serializeBinaryToWriter
462467
f
463468
);
464469
}
470+
f = message.getNoOverwrite();
471+
if (f) {
472+
writer.writeBool(
473+
6,
474+
f
475+
);
476+
}
465477
};
466478

467479

@@ -574,6 +586,24 @@ proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.prototype.setSkipPostIns
574586
};
575587

576588

589+
/**
590+
* optional bool no_overwrite = 6;
591+
* @return {boolean}
592+
*/
593+
proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.prototype.getNoOverwrite = function() {
594+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
595+
};
596+
597+
598+
/**
599+
* @param {boolean} value
600+
* @return {!proto.cc.arduino.cli.commands.v1.PlatformInstallRequest} returns this
601+
*/
602+
proto.cc.arduino.cli.commands.v1.PlatformInstallRequest.prototype.setNoOverwrite = function(value) {
603+
return jspb.Message.setProto3BooleanField(this, 6, value);
604+
};
605+
606+
577607

578608

579609

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/lib_pb.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ export class LibraryInstallRequest extends jspb.Message {
7979
getNoDeps(): boolean;
8080
setNoDeps(value: boolean): LibraryInstallRequest;
8181

82+
getNoOverwrite(): boolean;
83+
setNoOverwrite(value: boolean): LibraryInstallRequest;
84+
8285

8386
serializeBinary(): Uint8Array;
8487
toObject(includeInstance?: boolean): LibraryInstallRequest.AsObject;
@@ -96,6 +99,7 @@ export namespace LibraryInstallRequest {
9699
name: string,
97100
version: string,
98101
noDeps: boolean,
102+
noOverwrite: boolean,
99103
}
100104
}
101105

arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/lib_pb.js

+31-1
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.toObject = function(inclu
967967
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
968968
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
969969
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
970-
noDeps: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
970+
noDeps: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
971+
noOverwrite: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
971972
};
972973

973974
if (includeInstance) {
@@ -1021,6 +1022,10 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.deserializeBinaryFromRead
10211022
var value = /** @type {boolean} */ (reader.readBool());
10221023
msg.setNoDeps(value);
10231024
break;
1025+
case 5:
1026+
var value = /** @type {boolean} */ (reader.readBool());
1027+
msg.setNoOverwrite(value);
1028+
break;
10241029
default:
10251030
reader.skipField();
10261031
break;
@@ -1079,6 +1084,13 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.serializeBinaryToWriter =
10791084
f
10801085
);
10811086
}
1087+
f = message.getNoOverwrite();
1088+
if (f) {
1089+
writer.writeBool(
1090+
5,
1091+
f
1092+
);
1093+
}
10821094
};
10831095

10841096

@@ -1173,6 +1185,24 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.prototype.setNoDeps = fun
11731185
};
11741186

11751187

1188+
/**
1189+
* optional bool no_overwrite = 5;
1190+
* @return {boolean}
1191+
*/
1192+
proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.prototype.getNoOverwrite = function() {
1193+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1194+
};
1195+
1196+
1197+
/**
1198+
* @param {boolean} value
1199+
* @return {!proto.cc.arduino.cli.commands.v1.LibraryInstallRequest} returns this
1200+
*/
1201+
proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.prototype.setNoOverwrite = function(value) {
1202+
return jspb.Message.setProto3BooleanField(this, 5, value);
1203+
};
1204+
1205+
11761206

11771207

11781208

0 commit comments

Comments
 (0)