one bin to rule them all

This commit is contained in:
AJ ONeal 2018-09-03 19:16:08 -06:00
parent 170518d55a
commit 4870cd1ee0
1 changed files with 12 additions and 0 deletions

12
bin/telebit.js Executable 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');
}
}());