greenlock.js-ARCHIVED/bin/greenlock.js

21 lines
415 B
JavaScript
Raw Normal View History

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