mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Install readline
This commit is contained in:
parent
8202218682
commit
e842ada752
4 changed files with 29 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue