feat(cli): add first command
This commit is contained in:
parent
3a0d2e62f1
commit
62c2c3261b
22
packages/cli/src/index.ts
Normal file
22
packages/cli/src/index.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
import process from 'node:process'
|
||||||
|
|
||||||
|
import { Command } from 'commander'
|
||||||
|
|
||||||
|
process.on('SIGINT', () => process.exit(0))
|
||||||
|
process.on('SIGTERM', () => process.exit(0))
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const program = new Command()
|
||||||
|
.name('shadcn-vue')
|
||||||
|
.description('add components and dependencies to your project')
|
||||||
|
.version(
|
||||||
|
'1.0.0',
|
||||||
|
'-v, --version',
|
||||||
|
'display the version number',
|
||||||
|
)
|
||||||
|
|
||||||
|
program.parse()
|
||||||
|
}
|
||||||
|
|
||||||
|
await main()
|
||||||
Loading…
Reference in New Issue
Block a user