Install readline

This commit is contained in:
freearhey 2025-01-16 21:32:50 +03:00
parent 8202218682
commit e842ada752
4 changed files with 29 additions and 0 deletions

View file

@ -6,6 +6,18 @@ import nodeCleanup from 'node-cleanup'
import { program } from 'commander'
import inquirer, { QuestionCollection } from 'inquirer'
import Fuse from 'fuse.js'
import readline from 'readline'
if (process.platform === 'win32') {
readline
.createInterface({
input: process.stdin,
output: process.stdout
})
.on('SIGINT', function () {
process.emit('SIGINT')
})
}
program.argument('<filepath>', 'Path to *.channels.xml file to edit').parse(process.argv)