Services
Constants¶
- path
Questions to use for the CLI UIHBNHG
Functions¶
- inquire(question) ⇒
function Triggers the inquierer library
- inquireRepositoryData() ⇒
Object Triggers inquirer when yes/no needs to be answered
- pushFolderToRepo(url, dir) ⇒
Bolean Pushed the folder to the reppo after being cloned
- cloneRepo(url, repoName)
Clones and inits the repository from a given url
- push() ⇒
Executes git push
- pushOrigin()
Finds the current branch name and exectures push origin name
- addCommit(description)
Combined command that executes add . + commit --m "description"
- branchAndCheck(name)
Combined command that executes branch name + checkout name
path¶
Questions to use for the CLI UIHBNHG
inquire(question) ⇒ function¶
Triggers the inquierer library
Kind: global function
| Param | Type | Description |
|---|---|---|
| question | Object |
set of questions passed to be answered |
inquireRepositoryData() ⇒ Object¶
Triggers inquirer when yes/no needs to be answered
pushFolderToRepo(url, dir) ⇒ Bolean¶
Pushed the folder to the reppo after being cloned
Kind: global function
| Param | Type | Description |
|---|---|---|
| url | String |
github repository url |
| dir | String |
directory name |
cloneRepo(url, repoName)¶
Clones and inits the repository from a given url
Kind: global function
| Param | Type | Description |
|---|---|---|
| url | String |
github repository url |
| repoName | String |
repositry name |
push() ⇒¶
Executes git push
Kind: global function
Returns: the shell execution command
pushOrigin()¶
Finds the current branch name and exectures push origin name
addCommit(description)¶
Combined command that executes add . + commit --m "description"
Kind: global function
| Param | Type |
|---|---|
| description | String |
branchAndCheck(name)¶
Combined command that executes branch name + checkout name
Kind: global function
| Param | Type |
|---|---|
| name | String |