updateGitPlugin
约 104 字小于 1 分钟
2025-10-13
Karin API Docs / updateGitPlugin
函数: updateGitPlugin()
updateGitPlugin(
filePath
,cmd
,time
):Promise
<{data
:string
|ExecException
;status
:"failed"
; } | {commit
:string
;data
:string
;status
:"ok"
; } | {data
:Error
;status
:"error"
; }>
定义于: packages/core/src/utils/system/update.ts:356
参数
filePath
string
插件路径
cmd
string
= 'git pull'
执行命令 默认git pull
time
number
= 120
任务执行超时时间 默认120s
返回
Promise
<{ data
: string
| ExecException
; status
: "failed"
; } | { commit
: string
; data
: string
; status
: "ok"
; } | { data
: Error
; status
: "error"
; }>
Description
更新指定git插件