blob: 291e9abd7eefe0411b224f037badac1474eee8cf (
plain)
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
|
command = process.argv[2];
if (typeof command != "undefined") {
console.log("Checking certificates...");
require('./check');
console.log("Parsing command...");
if (command == "detect") {
process.argv.splice(2, 1);
require('./detect');
} else if (command == "learn") {
process.argv.splice(2, 1);
require('./learn');
} else if (command == "auto") {
process.argv.splice(2, 1);
require('./auto');
} else if (command == "interactive") {
process.argv.splice(2, 1);
require('./interactive');
} else if (command == "status") {
process.argv.splice(2, 1);
require('./status');
} else {
console.log("Unknown command");
process.exit();
}
} else {
console.log("Missing operand");
process.exit();
}
|