ctrlshiftleft
Version:
AI-powered toolkit for embedding QA and security testing into development workflows
37 lines (29 loc) • 966 B
text/typescript
import { Command } from 'commander';
import dotenv from 'dotenv';
import { genCommand } from './commands/gen';
import { runCommand } from './commands/run';
import { watchCommand } from './commands/watch';
import { watchAICommand } from './commands/watch-ai';
import { checklistCommand } from './commands/checklist';
import { searchCommand } from './commands/search';
import { version } from '../package.json';
// Load environment variables
dotenv.config();
const program = new Command();
program
.name('ctrlshiftleft')
.description('Ctrl.shift.left: Shift QA and security left with auto-generated tests and checklists')
.version(version);
// Register commands
genCommand(program);
runCommand(program);
watchCommand(program);
watchAICommand(program);
checklistCommand(program);
searchCommand(program);
program.parse(process.argv);
// If no command is provided, show help
if (!process.argv.slice(2).length) {
program.outputHelp();
}