补充runInTerminal

This commit is contained in:
fofolee
2022-05-18 17:00:22 +08:00
parent 14589ff425
commit 0ff673c509

View File

@@ -323,6 +323,16 @@ interface quickcommandApi {
*/
runVbs(script: string): Promise<string>;
/**
* 在终端运行,不支持 Linux
*
* @param command 要在终端运行的命令
* ```js
* quickcommand.runInTerminal(`whoami`)
* ```
*/
runInTerminal(command: string);
/**
* 对应 utools.onPluginEnter 的 code type 和 payload
*