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
console.log(chalk.yellowBright('ℹ There are no folders to delete yet. Generate folder(s) using the "node-mongo" command, then run the cleanup script after you are done developing, and are ready to add and push your changes/fixes.\n'));
48
+
warning('ℹ There are no folders to delete yet. Generate folder(s) using the "node-mongo" command, then run the cleanup script after you are done developing, and are ready to add and push your changes/fixes.\n');
Copy file name to clipboardExpand all lines: src/help.ts
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
importchalkfrom'chalk';
1
+
import{warning,consoleLog}from'../lib/helpers';
2
2
3
3
exportconsthelp=()=>{
4
-
console.log(
4
+
consoleLog(
5
5
`
6
6
Usage:
7
7
node-mongo <folder_name> <template>
@@ -55,7 +55,7 @@ folder name used already exists.
55
55
}
56
56
57
57
exportconstnotRecognised=()=>{
58
-
console.log(
58
+
consoleLog(
59
59
`
60
60
Flag(s) not recognised. Use any of the help command below for more info:
61
61
@@ -68,13 +68,12 @@ nmgo --help`
68
68
}
69
69
70
70
exportconstuserSupport=()=>{
71
-
console.log(chalk.yellowBright(
71
+
warning(
72
72
`
73
73
It looks like the node-mongo-cli does not work yet for your computer's operating system. Let us know the issue with the CLI on your computer's operating system by reporting it here:
if(notAmongTemplateCollection&&options.template!==undefined&&!options.skipPrompts)console.log(`${chalk.redBright(`${options.template}`)} is not in the node-mongo template collection`);
53
+
if(notAmongTemplateCollection&&options.template!==undefined&&!options.skipPrompts)consoleLog(`${redBrightNoConsole(`${options.template}`)} is not in the node-mongo template collection`);
0 commit comments