Captain is currently in ALPHA. We are happy to get your feedback

Module: template

Table of contents

Functions

Functions

downloadAndExtractRepo

downloadAndExtractRepo(root, «destructured»): Promise<void>

Parameters

NameType
rootany
«destructured»Object
› branchany
› filePathany
› nameany
› usernameany

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

NameType
urlany
examplePathany

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

NameType
«destructured»Object
› branchany
› filePathany
› nameany
› usernameany

Returns

Promise<boolean>

Defined in

template.js:21


isUrlOk

isUrlOk(url): Promise<boolean>

Parameters

NameType
urlany

Returns

Promise<boolean>

Defined in

template.js:12