cookie-ai-cli
Version:
A command-line interface tool designed to bridge the gap between natural language processing and command-line operations.
22 lines • 873 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const handle_command_1 = require("../handle-command");
const readline_1 = __importDefault(require("readline"));
// this is a test function to test the handleCommand function using the npx create-next-app command
// test for interactive TUI commands with user input and output while using stdio inherit
async function testCommand() {
const rl = readline_1.default.createInterface({
input: process.stdin,
output: process.stdout,
});
await (0, handle_command_1.handleCommand)({
rl,
command: "npx create-next-app",
});
process.exit(0);
}
testCommand();
//# sourceMappingURL=test-command-create-next-app.js.map
;