VipExecutor: { commandStandardExecutor: ( cmd: Command, ) => Promise<StandardExecutorResponse>; execCommand: ( cmd: Command, opts?: Omit<SpawnOptionsWithoutStdio, "stdio" | "cwd">, ) => Promise<CommandResponse>; execCommandSync: (cmd: string, cwd?: string) => string; execShell: ( commands: string | ShellCommand | ShellCommand[], ) => Promise<void>; getCommandTrimResponse: (command: string) => Promise<null | string>;} = ... 类型声明
execCommand: (
cmd: Command,
opts?: Omit<SpawnOptionsWithoutStdio, "stdio" | "cwd">,
) => Promise<CommandResponse>
execCommandSync: (cmd: string, cwd?: string) => string
execShell: (commands: string | ShellCommand | ShellCommand[]) => Promise<void>
getCommandTrimResponse: (command: string) => Promise<null | string>
执行器