one bin to rule them all

This commit is contained in:
AJ ONeal 2018-09-03 23:02:11 -06:00
parent 290d192bc9
commit 4210243c35
1 changed files with 12 additions and 0 deletions

12
bin/telebit.js Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env node
(function () {
'use strict';
// node telebit daemon arg1 arg2
if ('daemon' === process.argv[3]) {
require('./telebitd.js');
} else {
require('./telebit-remote.js');
}
}());