(tool tools.Tool)
| 128 | } |
| 129 | |
| 130 | func toolDTO(tool tools.Tool) ToolDTO { |
| 131 | installed, version := tools.Detect(tool) |
| 132 | return toolDTOWith(tool, installed, version) |
| 133 | } |
| 134 | |
| 135 | // toolDTOWith assembles a ToolDTO from an already-known detection result so |
| 136 | // the cached and freshly-probed paths produce identical output. |
no test coverage detected