You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/index.js
+20-9Lines changed: 20 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -282,30 +282,41 @@ program
282
282
"\n"
283
283
);
284
284
console.log(
285
-
"You just need to know 5 simple commands you and then you're "+
286
-
chalk.bold.cyan("gtg")+
287
-
": "+
288
-
chalk.magenta("Good to Go")
285
+
`You just need to know 7 simple commands you and then you're ${chalk.bold.cyan(
286
+
"gtg"
287
+
)} : ${chalk.magenta("Good to Go")}`
289
288
);
290
289
console.log(chalk.green("\ngtg config:\n"));
291
290
console.log(
292
-
"This command should be used to personalise your gitgo configuration. You can add your repository's commit and emoticon guidelines.\n"
291
+
"Use this to set up your project's gitgo configuration. You will be asked certain questions regarding your commit and emoji preferences.\n"
293
292
);
293
+
console.log(chalk.green("\ngtg version:\n"));
294
+
console.log(
295
+
"Use this to check the version of your installed gitg0 package."
296
+
);
297
+
console.log(chalk.green("\ngtg whoami:\n"));
298
+
console.log("I mean,,, you just used me.");
294
299
console.log(chalk.green("\ngtg start:\n"));
295
300
console.log(
296
-
"Everytime you start working on a new issue, just run this command in order for the tool to know which issue you're working on. After this, the tool will suggest the branch names and commit messages automatically.\n"
301
+
"Use this before you you start working on a new issue so that we can suggest the branch names and commit messages automatically.\n"
297
302
);
298
303
console.log(chalk.green("\ngtg display:\n"));
299
304
console.log(
300
-
"This command can be used to display the branch name and commit that the tool will be suggesting for a particular issue once bin start has been run.\n"
305
+
`Use this to view the suggested branch name and commit title. You can also edit the suggested text based on your preference. This command should be run after ${chalk.yellow(
306
+
"gg start"
307
+
)}.\n`
301
308
);
302
309
console.log(chalk.green("\ngtg checkout:\n"));
303
310
console.log(
304
-
"This is a replacement for git checkout and will simply checkout with the suggested branch name.\n"
311
+
`This is a replacement for ${chalk.yellow(
312
+
"git checkout -b"
313
+
)} and will simply checkout with gitgo's suggested branch name.\n`
305
314
);
306
315
console.log(chalk.green("\ngtg checkout:\n"));
307
316
console.log(
308
-
"This is a replacement for git commit and will commit your files once added with the suggested commit message.\n"
317
+
`This is a replacement for ${chalk.yellow(
318
+
"git checkout -m"
319
+
)} and will commit your files once added with gitgo's suggested commit message.\n`
"Would you be using emojis in your commit messages?(y/n)",
105
+
"Would you be using emojis in your commit messages?(y/N)",
105
106
name: "emojis",
106
107
},
107
108
])
108
109
.then((ans2)=>{
109
110
varemo=true;
110
-
if(ans2["emojis"]==="y"){
111
+
if(ans2["emojis"]==="y"||ans2["emojis"]==="Y"){
111
112
console.log(
112
113
"\nWe have an awesome set of emojis in the .gitgo file which will be suggested to you in the commit messages.\n"
113
114
);
114
-
}else{
115
+
}elseif(
116
+
ans2["emojis"]==="n"||
117
+
ans2["emojis"]==="N"||
118
+
ans2["emojis"]===""
119
+
){
115
120
emo=false;
121
+
}else{
122
+
console.log(
123
+
`We don't know what you mean by "${
124
+
ans2["emojis"]
125
+
}" ${emoji.get(":cry:")}`
126
+
);
127
+
exit();
116
128
}
117
129
reader.jsonReader("./.gitgo",(err,conf)=>{
118
130
if(err){
@@ -130,7 +142,9 @@ module.exports = {
130
142
);
131
143
});
132
144
console.log(
133
-
"\nSettings for your repo have been stored. Run gg start before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n"
145
+
`\nSettings for your repo have been stored. Run ${chalk.yellow(
146
+
"gg start"
147
+
)} before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n`
134
148
);
135
149
});
136
150
});
@@ -181,7 +195,9 @@ module.exports = {
181
195
);
182
196
});
183
197
console.log(
184
-
"\nSettings for your repo have been stored. Run gg start before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n"
198
+
`\nSettings for your repo have been stored. Run ${chalk.yellow(
199
+
"gg start"
200
+
)} before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n`
0 commit comments