opensaas
Version:
Create fully bundled SaaS application (Backend & Frontend) using an interactive CLI
16 lines (13 loc) • 417 B
text/typescript
import chalk from 'chalk';
import { addService } from './add-service';
export async function add(args: string[]): Promise<void> {
const [command, ...params] = args;
switch (args[0]) {
case 'service':
addService(params);
break;
default:
console.log(chalk.red('✖ ') + chalk.white.bold('command ') + chalk.blue.bold(command) + chalk.white.bold(' not found'));
}
}