We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cef9b commit 7457023Copy full SHA for 7457023
src/cli/cli.ts
@@ -0,0 +1,29 @@
1
+/**
2
+ * Name: cli.ts
3
+ * Description: Main entry point file for CLI tool
4
+ * Author: Ovidiu Barabula <lectii2008@gmail.com>
5
+ * @since 0.1.0
6
+ */
7
+
8
+import * as program from 'commander';
9
10
+program
11
+ .version('0.1.0')
12
+ .arguments('<command>')
13
+ .action(command => {
14
+ if (!command) {
15
+ console.log('You need to type a command as well');
16
+ }
17
+ });
18
19
20
+ .command('init [name]')
21
+ .action(name => console.log(`Creating a new project ./${name}`))
22
+ .description('Initialize a new project');
23
24
25
+ .command('config')
26
+ .description('Start configuration wizard')
27
+ .action(() => console.log('Starting configuration...'));
28
29
+program.parse(process.argv);
0 commit comments