(distro: string, opts?: RunWslOptions)
| 303 | } |
| 304 | |
| 305 | export async function resolveWslOpencode(distro: string, opts?: RunWslOptions) { |
| 306 | return firstLine( |
| 307 | ( |
| 308 | await runWslSh( |
| 309 | 'if [ -x "$HOME/.opencode/bin/opencode" ]; then printf "%s\\n" "$HOME/.opencode/bin/opencode"; fi', |
| 310 | distro, |
| 311 | opts, |
| 312 | ) |
| 313 | ).stdout, |
| 314 | ) |
| 315 | } |
| 316 | |
| 317 | export async function readWslCommandVersion(command: string, distro: string, opts?: RunWslOptions) { |
| 318 | const result = await runWslSh(`${shellEscape(command)} --version 2>/dev/null || true`, distro, opts) |
no test coverage detected