Update validate.ts

This commit is contained in:
freearhey
2025-07-29 05:28:04 +03:00
parent 3699f1372d
commit 651850370a

View File

@@ -9,9 +9,9 @@ import { program } from 'commander'
import chalk from 'chalk'
import langs from 'langs'
program.argument('[filepath]', 'Path to *.channels.xml files to validate').parse(process.argv)
program.argument('[filepath...]', 'Path to *.channels.xml files to validate').parse(process.argv)
type ValidationError = {
interface ValidationError {
type: 'duplicate' | 'wrong_channel_id' | 'wrong_feed_id' | 'wrong_lang'
name: string
lang?: string