Comparing version 5.2.0-rc.6 to 5.2.0-rc.7
39
cli.js
@@ -10,6 +10,12 @@ 'use strict'; | ||
var version = "5.2.0-rc.6"; | ||
var version = "5.2.0-rc.7"; | ||
var help = "Usage: pagedip [--help] [--version]\n\n A Pagedip CLI tool.\n\nOptions\n -h, -H, --help Shows this message.\n -v, -V, --version Prints the version and exits."; | ||
var main$1 = "Usage: pagedip <command> [--debug] [--silent] [--dev] [--help]\n [--version]\n\n The Pagedip CLI tool.\n\nCommands\n register Register this host with a Pagedip License key.\n install Install a Pagedip package by name.\n run Run a Pagedip app.\n start, server, ee Start a basic Pagedip Enterprise server.\n\n This is the main Pagedip CLI tool. With this tool you can install Pagedip\n packages, run servers, and more.\n\n The following app names can be used as commands directly: api, auth,\n couchdb-setup, editor, enterprise-edition, live, setup, theme, theme-server\n\n Run --help on any command for further help documentation.\n\nOptions\n --debug Show debug messages.\n -s, --silent All logs will be hidden.\n --dev Run in development mode.\n -h, -H, --help Shows this message.\n -v, -V, --version Prints the version and exits."; | ||
var register$1 = "Usage: pagedip register <license> [--help]\n\n Register this host with a Pagedip License key.\n\n Install a Pagedip License key onto this host. Once installed, the license is\n detected by Pagedip server instances and used to verify the legitimacy of the\n instance.\n\nOptions\n -h, -H, --help Shows this message."; | ||
var install$1 = "Usage: pagedip install [<pkgname>...] [--help]\n\n Install Pagedip packages.\n\n This will install Pagedip packages and apps from the Pagedip registry. This\n host should already be registered with a valid license key before installing\n packages.\n\n One or more packages can be installed at once. Postfix the package name with\n @version to install a specific version.\n\nOptions\n -h, -H, --help Shows this message."; | ||
var run$1 = "Usage: pagedip run <pkgname> [--help]\n\n Run Pagedip apps.\n\n Run a Pagedip app by name. CLI options are passed through to the app\n directly. This host should already be registered with a valid license key\n before running apps.\n\n If the app is not installed on the host, you will be asked to install the app\n before it runs.\n\nOptions\n -h, -H, --help Shows this message."; | ||
var apps = [".babelrc", ".template", "api", "auth", "couchdb-setup", "editor", "enterprise-edition", "live", "setup", "theme", "theme-server"]; | ||
@@ -163,2 +169,7 @@ | ||
var _ref2 = asyncToGenerator(function* (args, config, logger) { | ||
if (!args.length || this.help()) { | ||
logger.info(install$1); | ||
return; | ||
} | ||
yield require("./").install(args, { logger: logger }); | ||
@@ -174,2 +185,7 @@ }); | ||
var _ref3 = asyncToGenerator(function* (args, config, logger) { | ||
if (!args.length) { | ||
logger.info(run$1); | ||
return; | ||
} | ||
var _require = require("./"), | ||
@@ -208,7 +224,12 @@ load = _require.load; | ||
var register = function () { | ||
var _ref5 = asyncToGenerator(function* (args) { | ||
var _ref5 = asyncToGenerator(function* (args, config, logger) { | ||
if (!args.length || this.help()) { | ||
logger.info(register$1); | ||
return; | ||
} | ||
yield require("./").register(args[0]); | ||
}); | ||
return function register(_x10) { | ||
return function register(_x10, _x11, _x12) { | ||
return _ref5.apply(this, arguments); | ||
@@ -224,6 +245,3 @@ }; | ||
if (!isApp && this.help()) { | ||
logger.info(help); | ||
return; | ||
} else if (!isApp && this.version()) { | ||
if (!isApp && this.version()) { | ||
logger.info(name + " " + version); | ||
@@ -258,6 +276,5 @@ return; | ||
yield run.call(this, args, config, logger); | ||
break; | ||
} else { | ||
logger.info(main$1); | ||
} | ||
logger.info(help); | ||
} | ||
@@ -264,0 +281,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"public": true, | ||
"version": "5.2.0-rc.6", | ||
"version": "5.2.0-rc.7", | ||
"author": "Tyler Johnson <tyler@beneaththeink.com>", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"dependencies": { | ||
"@pagedip/lib-command": "^1.0.0-rc.6", | ||
"@pagedip/lib-command": "^1.0.0-rc.7", | ||
"@pagedip/lib-rc": "^1.0.0-rc.6", | ||
@@ -46,3 +46,3 @@ "@pagedip/util-resolve": "^1.0.0-rc.4", | ||
], | ||
"gitHead": "151350bdfba417751d1846c635202db636c1de86" | ||
"gitHead": "ac5dabace89f0cae630c93210e34199a7ac3837f" | ||
} |
16590
472