Browse Source

fix npx greenlock add

v4
AJ ONeal 5 years ago
parent
commit
060979daf2
  1. 10
      bin/greenlock.js
  2. 2
      package-lock.json
  3. 3
      package.json

10
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);
}

2
package-lock.json

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

3
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",

Loading…
Cancel
Save