fix npx greenlock add

This commit is contained in:
AJ ONeal 2019-11-01 23:44:37 -06:00
parent 8a13b978ed
commit 060979daf2
3 changed files with 9 additions and 6 deletions

View File

@ -5,12 +5,16 @@ var args = process.argv.slice(2);
var arg0 = args[0];
//console.log(args);
['certonly', 'add', 'config', 'defaults', 'remove'].some(function(k) {
var found = ['certonly', 'add', 'config', 'defaults', 'remove'].some(function(
k
) {
if (k === arg0) {
require('./' + k);
return true;
}
});
console.error(arg0 + 'command not yet implemented');
process.exit();
if (!found) {
console.error(arg0 + ': command not yet implemented');
process.exit(1);
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "3.0.27",
"version": "3.1.0-wip",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "3.1.0",
"version": "3.1.0-wip",
"description": "The easiest Let's Encrypt client for Node.js and Browsers",
"homepage": "https://rootprojects.org/greenlock/",
"main": "greenlock.js",
@ -43,7 +43,6 @@
"@root/keypairs": "^0.9.0",
"@root/mkdirp": "^1.0.0",
"@root/request": "^1.3.10",
"acme-dns-01-digitalocean": "^3.0.1",
"acme-http-01-standalone": "^3.0.5",
"cert-info": "^1.5.1",
"greenlock-manager-fs": "^3.0.3",