(
command: string,
args: readonly string[],
options: RunCommandOptions = {},
)
| 24 | } |
| 25 | |
| 26 | export async function getCommandOutput( |
| 27 | command: string, |
| 28 | args: readonly string[], |
| 29 | options: RunCommandOptions = {}, |
| 30 | ): Promise<string | null> { |
| 31 | try { |
| 32 | return (await runCommand(command, args, options)).trim(); |
| 33 | } catch (e) { |
| 34 | return null; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | export async function isInstalled(command: string): Promise<boolean> { |
| 39 | try { |
no test coverage detected