From 060979daf246ff04c1554a3caeb92f9f914ff736 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 1 Nov 2019 23:44:37 -0600 Subject: [PATCH] fix npx greenlock add --- bin/greenlock.js | 10 +++++++--- package-lock.json | 2 +- package.json | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/greenlock.js b/bin/greenlock.js index 11e9e9e..4254c19 100755 --- a/bin/greenlock.js +++ b/bin/greenlock.js @@ -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); +} diff --git a/package-lock.json b/package-lock.json index 445010f..1e75e62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@root/greenlock", - "version": "3.0.27", + "version": "3.1.0-wip", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cc9a7d2..7920aef 100644 --- a/package.json +++ b/package.json @@ -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",