File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
discovery/discoverymanager Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,8 @@ func (pm *PackageManager) InstalledBoards() []*cores.Board {
438438 return boards
439439}
440440
441+ // FindToolsRequiredFromPlatformRelease returns a list of ToolReleases needed by the specified PlatformRelease.
442+ // If a ToolRelease is not found return an error
441443func (pm * PackageManager ) FindToolsRequiredFromPlatformRelease (platform * cores.PlatformRelease ) ([]* cores.ToolRelease , error ) {
442444 pm .Log .Infof ("Searching tools required for platform %s" , platform )
443445
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ func (dm *DiscoveryManager) QuitAll() error {
139139 return nil
140140}
141141
142+ // List returns a list of available ports detected from all discoveries
142143func (dm * DiscoveryManager ) List () []* discovery.Port {
143144 res := []* discovery.Port {}
144145 for _ , disc := range dm .discoveries {
@@ -151,7 +152,7 @@ func (dm *DiscoveryManager) List() []*discovery.Port {
151152 return res
152153}
153154
154- // ListPorts return the current list of ports detected from all discoveries
155+ // ListSync return the current list of ports detected from all discoveries
155156func (dm * DiscoveryManager ) ListSync () []* discovery.Port {
156157 res := []* discovery.Port {}
157158 for _ , disc := range dm .discoveries {
You can’t perform that action at this time.
0 commit comments