Skip to content

Commit 047900f

Browse files
committed
feat(mkdir): ✨ Add mkdir command
1 parent 0196551 commit 047900f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"conventionalCommits.scopes": [
3+
"mkdir"
4+
]
5+
}

src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,13 @@ export function cp(pattern: string, destPath: string, options: {
6868
.on('change', copytoDestFn);
6969
}
7070

71+
program.command('mkdir')
72+
.description('Creates a directory in the specified path.')
73+
.argument('<string>', 'Path')
74+
.action(mkdir);
75+
76+
export function mkdir(pattern: string) {
77+
fs.mkdirSync(pattern);
78+
}
79+
7180
program.parse();

0 commit comments

Comments
 (0)