Install readline

This commit is contained in:
freearhey committed 2025-01-16 21:32:50 +03:00
1 parent 8202218682
commit e842ada752
4 files changed
+29

No files matched your search

+12
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)