-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobonaut.js
executable file
·39 lines (32 loc) · 1.5 KB
/
robonaut.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env node
// 📡🛰👽👾🎮📦☄🌚
// const path = require('path');
// const gitRevSync = require('git-rev-sync');
// const Promise = require('bluebird');
// const charm = require('promise-charm');
// const term = require('terminal-kit');
const settings = require('./lib/settings');
const log = require('./lib/log')(settings);
const file = require('./lib/file')(settings, log);
const spawn = require('./lib/spawn')(settings, log);
const helpers = require('./lib/helpers');
const main = {};
main.assemble = require('./lib/assemble')(settings, log, file, spawn);
main.disassemble = require('./lib/disassemble')(settings, log, file, spawn);
main.current = require('./lib/current')(settings, log, file, spawn);
main.sync = require('./lib/sync')(settings, log, file, spawn, main);
main.fuse = require('./lib/fuse')(settings, log, file, spawn, main, helpers);
main.scan = require('./lib/scan')(settings, log, file, spawn);
main.switch = require('./lib/switch')(settings, log, file, spawn);
main.test = require('./lib/test')(settings, log, file, spawn);
main.numerate = require('./lib/numerate')(settings, log, main.file, spawn, main, helpers);
main.transmit = require('./lib/transmit')(settings, log, file, spawn, main, helpers);
main.publish = require('./lib/publish')(settings, log, file, spawn, main, helpers);
const core = require('./lib/core')(settings, log, file, spawn, main);
// (for testing/remote-control)
module.exports = {
begin: core.begin
};
if (process.stdin.isTTY) {
core.begin(process.argv);
}