toolDTOWith assembles a ToolDTO from an already-known detection result so the cached and freshly-probed paths produce identical output.
(tool tools.Tool, installed bool, version string)
| 135 | // toolDTOWith assembles a ToolDTO from an already-known detection result so |
| 136 | // the cached and freshly-probed paths produce identical output. |
| 137 | func toolDTOWith(tool tools.Tool, installed bool, version string) ToolDTO { |
| 138 | return ToolDTO{ |
| 139 | Name: tool.Name, Command: tool.LaunchCommand(), Description: tool.Description, |
| 140 | Enabled: tool.IsEnabled(), Installed: installed, Version: version, |
| 141 | } |
| 142 | } |
no test coverage detected