Add CLI config, bin scripts, CI workflow and types

This commit is contained in:
2026-01-29 10:07:36 +00:00
parent a67b1e8882
commit 8e926decee

23
bin/run.js Normal file
View File

@@ -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);
});