Module: template
Table of contents
Functions
Functions
downloadAndExtractRepo
▸ downloadAndExtractRepo(root
, «destructured»
): Promise
<void
>
Parameters
Name | Type |
---|---|
root | any |
«destructured» | Object |
› branch | any |
› filePath | any |
› name | any |
› username | any |
Returns
Promise
<void
>
Defined in
template.js:26
getRepoInfo
▸ getRepoInfo(url
, examplePath
): Promise
<undefined
| { branch
: any
= data.default_branch; filePath
: any
; name
: any
; username
: any
}>
Parameters
Name | Type |
---|---|
url | any |
examplePath | any |
Returns
Promise
<undefined
| { branch
: any
= data.default_branch; filePath
: any
; name
: any
; username
: any
}>
Defined in
template.js:33
hasRepo
▸ hasRepo(«destructured»
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
«destructured» | Object |
› branch | any |
› filePath | any |
› name | any |
› username | any |
Returns
Promise
<boolean
>
Defined in
template.js:21
isUrlOk
▸ isUrlOk(url
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
url | any |
Returns
Promise
<boolean
>
Defined in
template.js:12