Comparing version 1.2.0 to 1.2.1
@@ -25,3 +25,3 @@ 'use strict'; | ||
_commander2.default.version(require("../package.json").version).option('--path <value>', 'Path to the configuration file').option('--host <value>', 'Kong admin host (default: localhost:8001)', 'localhost:8001').parse(process.argv); | ||
_commander2.default.version(require("../package.json").version).option('--path <value>', 'Path to the configuration file').option('--host <value>', 'Kong admin host (default: localhost:8001)').parse(process.argv); | ||
@@ -34,3 +34,3 @@ if (!_commander2.default.path) { | ||
var config = (0, _configLoader2.default)(_commander2.default.path); | ||
var host = _commander2.default.host || config.host; | ||
var host = _commander2.default.host || config.host || 'localhost:8001'; | ||
@@ -37,0 +37,0 @@ if (!host) { |
@@ -11,2 +11,2 @@ 'use strict'; | ||
_commander2.default.version(pkg.version).command('apply', 'Apply config to a kong server', { isDefault: true }).command('dump', 'Dump the configuration from a kong server').parse(process.argv); | ||
_commander2.default.version(pkg.version).allowUnknownOption().command('apply', 'Apply config to a kong server', { isDefault: true }).command('dump', 'Dump the configuration from a kong server').parse(process.argv); |
{ | ||
"name": "kongfig", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A tool for Kong to allow declarative configuration.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/mybuilder/kongfig", |
123538