@@ -59,14 +59,17 @@ func NewPackageManager(indexDir, packagesDir, downloadDir, tempDir *paths.Path)
59
59
}
60
60
}
61
61
62
+ // Clear FIXMEDOC
62
63
func (pm * PackageManager ) Clear () {
63
64
pm .packages = cores .NewPackages ()
64
65
}
65
66
67
+ // GetPackages FIXMEDOC
66
68
func (pm * PackageManager ) GetPackages () * cores.Packages {
67
69
return pm .packages
68
70
}
69
71
72
+ // FindPlatformReleaseProvidingBoardsWithVidPid FIXMEDOC
70
73
func (pm * PackageManager ) FindPlatformReleaseProvidingBoardsWithVidPid (vid , pid string ) []* cores.PlatformRelease {
71
74
res := []* cores.PlatformRelease {}
72
75
for _ , targetPackage := range pm .packages .Packages {
@@ -86,6 +89,7 @@ func (pm *PackageManager) FindPlatformReleaseProvidingBoardsWithVidPid(vid, pid
86
89
return res
87
90
}
88
91
92
+ // FindBoardsWithVidPid FIXMEDOC
89
93
func (pm * PackageManager ) FindBoardsWithVidPid (vid , pid string ) []* cores.Board {
90
94
res := []* cores.Board {}
91
95
for _ , targetPackage := range pm .packages .Packages {
@@ -102,6 +106,7 @@ func (pm *PackageManager) FindBoardsWithVidPid(vid, pid string) []*cores.Board {
102
106
return res
103
107
}
104
108
109
+ // FindBoardsWithID FIXMEDOC
105
110
func (pm * PackageManager ) FindBoardsWithID (id string ) []* cores.Board {
106
111
res := []* cores.Board {}
107
112
for _ , targetPackage := range pm .packages .Packages {
@@ -290,6 +295,7 @@ func (ta *ToolActions) IsInstalled() (bool, error) {
290
295
return false , nil
291
296
}
292
297
298
+ // Release FIXMEDOC
293
299
func (ta * ToolActions ) Release (version * semver.RelaxedVersion ) * ToolReleaseActions {
294
300
if ta .forwardError != nil {
295
301
return & ToolReleaseActions {forwardError : ta .forwardError }
@@ -310,6 +316,7 @@ type ToolReleaseActions struct {
310
316
forwardError error
311
317
}
312
318
319
+ // Get FIXMEDOC
313
320
func (tr * ToolReleaseActions ) Get () (* cores.ToolRelease , error ) {
314
321
if tr .forwardError != nil {
315
322
return nil , tr .forwardError
@@ -340,6 +347,7 @@ func (pm *PackageManager) GetInstalledPlatformRelease(platform *cores.Platform)
340
347
return best
341
348
}
342
349
350
+ // GetAllInstalledToolsReleases FIXMEDOC
343
351
func (pm * PackageManager ) GetAllInstalledToolsReleases () []* cores.ToolRelease {
344
352
tools := []* cores.ToolRelease {}
345
353
for _ , targetPackage := range pm .packages .Packages {
@@ -384,6 +392,7 @@ func (pm *PackageManager) InstalledBoards() []*cores.Board {
384
392
return boards
385
393
}
386
394
395
+ // FindToolsRequiredForBoard FIXMEDOC
387
396
func (pm * PackageManager ) FindToolsRequiredForBoard (board * cores.Board ) ([]* cores.ToolRelease , error ) {
388
397
pm .Log .Infof ("Searching tools required for board %s" , board )
389
398
@@ -421,6 +430,7 @@ func (pm *PackageManager) FindToolsRequiredForBoard(board *cores.Board) ([]*core
421
430
return requiredTools , nil
422
431
}
423
432
433
+ // FindToolDependency FIXMEDOC
424
434
func (pm * PackageManager ) FindToolDependency (dep * cores.ToolDependency ) * cores.ToolRelease {
425
435
toolRelease , err := pm .Package (dep .ToolPackager ).Tool (dep .ToolName ).Release (dep .ToolVersion ).Get ()
426
436
if err != nil {
0 commit comments