Skip to content

Commit da16504

Browse files
Merged unrelated histories from main to dev
2 parents 28e5465 + 67fe46d commit da16504

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env node
2+
3+
import { Command } from 'commander';
4+
// const {PrismaClient}=require('@prisma/client');
5+
6+
const program = new Command();
7+
// const prisma = new PrismaClient();
8+
9+
10+
program
11+
.name(' Code Snippet CLI')
12+
.description('My Code Snippet CLI program')
13+
.version('1.0.0');
14+
15+
program
16+
.command('hi <name>')
17+
.description('Says hi to the user')
18+
.option('-f')
19+
.action(() =>{ console.log('Hello User, Welcome to the CLI');});
20+
21+
program.parse();

package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "code-snippet-cli",
3+
"version": "1.0.0",
4+
"description": "",
5+
"type": "module",
6+
"main": "index.js",
7+
"bin": {
8+
"mycli": "./index.js"
9+
},
10+
"scripts": {
11+
"test": "echo \"Error: no test specified\" && exit 1"
12+
},
13+
"keywords": [],
14+
"author": "",
15+
"license": "ISC",
16+
"dependencies": {
17+
"commander": "^14.0.0"
18+
}
19+
}

0 commit comments

Comments
 (0)