Add CLI config, bin scripts, CI workflow and types
This commit is contained in:
23
bin/run.js
Normal file
23
bin/run.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user