mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-09 23:13:22 +08:00
quickcommand.loadRemoteScript添加是否使用缓存的选项,支持将脚本缓存到本地,不必每次重复下载
This commit is contained in:
@@ -346,8 +346,10 @@ interface quickcommandApi {
|
||||
* ```
|
||||
*
|
||||
* @param url 脚本地址
|
||||
* @param options 选项
|
||||
* @param options.useCache 使用缓存,默认为假。为真时会将远程脚本缓存到本地的utools.getPath("userData")/quickcommand目录,否则每次都会下载脚本
|
||||
*/
|
||||
loadRemoteScript(url: string): Promise<object>;
|
||||
loadRemoteScript(url: string, options?: { useCache?: boolean }): Promise<object>;
|
||||
|
||||
/**
|
||||
* 将 signal 发送给 pid 标识的进程 , 默认为关闭进程
|
||||
|
Reference in New Issue
Block a user