diff --git a/bin/run.js b/bin/run.js new file mode 100644 index 0000000..15cc0e0 --- /dev/null +++ b/bin/run.js @@ -0,0 +1,23 @@ +#!/usr/bin/env node +import { run } from '@oclif/core'; +import { fileURLToPath } from 'url'; +import { dirname, join } from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(join(__filename, '..')); + +async function main() { + await run(process.argv.slice(2), { + name: 'testspec', + version: '1.0.0', + description: 'Convert natural language requirements into structured unit test cases', + root: __dirname, + bin: 'testspec', + commands: join(__dirname, 'dist', 'commands'), + }); +} + +main().catch((error) => { + console.error(error); + process.exit(1); +});