(stdout: string)
| 411 | } |
| 412 | |
| 413 | function parseRustVersion(stdout: string): RustVersion { |
| 414 | const splits = stdout |
| 415 | .split(/[\n\r]+/) |
| 416 | .filter(Boolean) |
| 417 | .map((s) => s.split(":").map((s) => s.trim())) |
| 418 | .filter((s) => s.length === 2); |
| 419 | return Object.fromEntries(splits); |
| 420 | } |
| 421 | |
| 422 | async function globFiles(pattern: string): Promise<string[]> { |
| 423 | const globber = await glob.create(pattern, { |