Skip to content

Commit 2056ce0

Browse files
committed
fix : greeting
1 parent e6984ef commit 2056ce0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lets-create-api",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "An awesome CLI tool designed to accelerate the creation of Backend projects, making it effortless to build RESTful APIs with various backend and database technology combinations.",
55
"main": "index.js",
66
"bin": {

src/cli/cli.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { greetings } = require('../utils/greetings')
99

1010
const repoName = process.argv[2]
1111

12+
// eslint-disable-next-line consistent-return
1213
const runCLI = async () => {
1314
const backendResponse = await prompt({
1415
type: 'select',
@@ -36,7 +37,7 @@ const runCLI = async () => {
3637
type: 'confirm',
3738
name: 'github',
3839
message: 'Do you want to push to a new GitHub repository?',
39-
initial: true,
40+
initial: false,
4041
})
4142
const { github } = { ...githubResponse }
4243
if (github) {

src/utils/githubPush.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const { prompt } = require('enquirer')
22
const { runCommand } = require('./utils')
3-
const { greetings } = require('./greetings')
43

54
const handleGitHubFlow = async (repoName) => {
65
const repoLinkResponse = await prompt({
@@ -24,7 +23,6 @@ const handleGitHubFlow = async (repoName) => {
2423
const pushToNewRepo = runCommand(pushToNewRepoCommand)
2524
if (!pushToNewRepo) process.exit(-1)
2625
console.log(githubRepoLink)
27-
greetings(repoName)
2826
}
2927

3028
module.exports = { handleGitHubFlow }

0 commit comments

Comments
 (0)