File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
arduino-core/src/cc/arduino/cli Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 48
48
import cc .arduino .cli .commands .Common .Instance ;
49
49
import cc .arduino .cli .commands .Compile .CompileReq ;
50
50
import cc .arduino .cli .commands .Compile .CompileResp ;
51
+ import cc .arduino .cli .commands .Lib .InstalledLibrary ;
52
+ import cc .arduino .cli .commands .Lib .LibraryListReq ;
53
+ import cc .arduino .cli .commands .Lib .LibraryListResp ;
51
54
import cc .arduino .cli .commands .Lib .LibrarySearchReq ;
52
55
import cc .arduino .cli .commands .Lib .LibrarySearchResp ;
53
56
import cc .arduino .cli .commands .Lib .SearchedLibrary ;
@@ -152,6 +155,18 @@ public List<SearchedLibrary> searchLibrary(String query)
152
155
}
153
156
}
154
157
158
+ public List <InstalledLibrary > libraryList (boolean listAll ) throws StatusException {
159
+ try {
160
+ LibraryListResp resp = stub .libraryList (LibraryListReq .newBuilder () //
161
+ .setInstance (instance ) //
162
+ .setAll (listAll ) //
163
+ .build ());
164
+ return resp .getInstalledLibraryList ();
165
+ } catch (StatusRuntimeException e ) {
166
+ throw e .getStatus ().asException ();
167
+ }
168
+ }
169
+
155
170
public List <ContributedLibraryRelease > libraryResolveDependecies (ContributedLibraryRelease lib ) {
156
171
return new ArrayList <>();
157
172
}
You can’t perform that action at this time.
0 commit comments