( currentVersion: string, target: UpdateTarget, source: InstallSource, installCommand: string, )
| 467 | } |
| 468 | |
| 469 | async function promptInstall( |
| 470 | currentVersion: string, |
| 471 | target: UpdateTarget, |
| 472 | source: InstallSource, |
| 473 | installCommand: string, |
| 474 | ): Promise<InstallPromptChoiceValue> { |
| 475 | const options: InstallPromptOptions = { |
| 476 | currentVersion, |
| 477 | target, |
| 478 | installSource: source, |
| 479 | installCommand, |
| 480 | }; |
| 481 | return promptForInstallChoice(options); |
| 482 | } |
| 483 | |
| 484 | export async function installUpdate( |
| 485 | source: InstallSource, |
no test coverage detected