UNPKG

mya-cli

Version:

AI-powered stock and options analysis CLI tool. Fully automated trading intelligence platform.

18 lines (14 loc) 491 B
#!/usr/bin/env node const { spawn } = require('child_process'); const path = require('path'); // Use the HTTP CLI implementation const cliPath = path.resolve(__dirname, '../dist/cli-http.js'); // Use a single process execution with stdio inheritance // This ensures proper handling of interactive prompts const child = spawn(process.execPath, [cliPath, ...process.argv.slice(2)], { stdio: 'inherit', cwd: process.cwd(), }); child.on('exit', (code) => { process.exit(code || 0); });