fix npx greenlock add
This commit is contained in:
parent
8a13b978ed
commit
060979daf2
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@root/greenlock",
|
||||
"version": "3.0.27",
|
||||
"version": "3.1.0-wip",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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…
Reference in New Issue