greenlock.js-ARCHIVED/bin/greenlock.js

21 lines
415 B
JavaScript
Raw Normal View History

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);
var found = ['certonly', 'add', 'update', 'config', 'defaults', 'remove', 'init'].some(
function(k) {
if (k === arg0) {
require('./' + k);
return true;
}
2019-11-02 05:33:11 +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);
}