From 62c2c3261bce7b6b0407141293e880b922795d36 Mon Sep 17 00:00:00 2001 From: Mukund Shah <39938037+mukundshah@users.noreply.github.com> Date: Sat, 26 Aug 2023 22:26:16 +0545 Subject: [PATCH] feat(cli): add first command --- packages/cli/src/index.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/cli/src/index.ts diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts new file mode 100644 index 00000000..7627ed8f --- /dev/null +++ b/packages/cli/src/index.ts @@ -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()