forked from superhawk610/multicast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
executable file
·16 lines (16 loc) · 874 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env node
if (process.argv.length == 2) { // run with no arguments, display help
console.log('Multicast is a persistent solution to presenting content across multiple Chromecast devices.')
console.log('')
console.log('USAGE: multicast <command> (--flags)')
console.log('')
console.log('Commands:')
console.log(' config run this first to set up Multicast')
console.log(' start start Multicast as a foreground process')
console.log('')
console.log('Flags:')
console.log(' --serve-only do not run the mDNS server (won\'t interrupt existing receivers)')
} else {
if (process.argv.find(arg => arg == 'config')) require('./app/config.js') // run configuration
else require('./app/main.js') // start application
}