Function: clonePlugin()
clonePlugin(
name
,options
):Promise
<void
>
Defined in: packages/ov0/src/core/utils/git/index.ts:24
克隆插件到plugins目录
Parameters
name
string
插件名
options
Omit
<{ cache?
: object
; corsProxy?
: string
; depth?
: number
; dir
: string
; exclude?
: string
[]; fs
: FsClient
; gitdir?
: string
; headers?
: {[x
: string
]: string
; }; http
: HttpClient
; noCheckout?
: boolean
; noTags?
: boolean
; onAuth?
: AuthCallback
; onAuthFailure?
: AuthFailureCallback
; onAuthSuccess?
: AuthSuccessCallback
; onMessage?
: MessageCallback
; onPostCheckout?
: PostCheckoutCallback
; onProgress?
: ProgressCallback
; ref?
: string
; relative?
: boolean
; remote?
: string
; since?
: Date
; singleBranch?
: boolean
; url
: string
; }, "dir"
| "fs"
| "http"
> & object
配置
Returns
Promise
<void
>