2019-10-17 11:43:25 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var args = process.argv.slice(2);
|
2019-11-02 05:33:11 +00:00
|
|
|
var arg0 = args[0];
|
2019-11-01 11:30:49 +00:00
|
|
|
//console.log(args);
|
|
|
|
|
2019-11-03 09:51:32 +00:00
|
|
|
var found = ['certonly', 'add', 'update', 'config', 'defaults', 'remove', 'init'].some(
|
2019-11-03 07:58:01 +00:00
|
|
|
function(k) {
|
|
|
|
if (k === arg0) {
|
|
|
|
require('./' + k);
|
|
|
|
return true;
|
|
|
|
}
|
2019-11-02 05:33:11 +00:00
|
|
|
}
|
2019-11-03 07:58:01 +00:00
|
|
|
);
|
2019-11-02 05:33:11 +00:00
|
|
|
|
2019-11-02 05:44:37 +00:00
|
|
|
if (!found) {
|
|
|
|
console.error(arg0 + ': command not yet implemented');
|
|
|
|
process.exit(1);
|
|
|
|
}
|