mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-30 21:13:02 +08:00
补充runInTerminal
This commit is contained in:
parent
14589ff425
commit
0ff673c509
10
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
10
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
@ -323,6 +323,16 @@ interface quickcommandApi {
|
|||||||
*/
|
*/
|
||||||
runVbs(script: string): Promise<string>;
|
runVbs(script: string): Promise<string>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 在终端运行,不支持 Linux
|
||||||
|
*
|
||||||
|
* @param command 要在终端运行的命令
|
||||||
|
* ```js
|
||||||
|
* quickcommand.runInTerminal(`whoami`)
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
runInTerminal(command: string);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对应 utools.onPluginEnter 的 code type 和 payload
|
* 对应 utools.onPluginEnter 的 code type 和 payload
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user