known-ui
Version:
A CLI tool for integrating Known UI components into your Next.js projects.
18 lines (13 loc) • 403 B
JavaScript
import { program } from 'commander';
import initCommand from '../commands/init.js';
import addCommand from '../commands/add.js';
program
.command('init')
.description('Initialize your project')
.action(initCommand);
program
.command('add [component]')
.description('Add a component to your project')
.action(addCommand);
program.parse(process.argv);