Print error message, and exit process.
Error message to log
Error code
Execute command, because npm install running info can not be catched by shelljs, temporarily use this one
Command to exec
Options stdio default is [0, 1, 2]
Extend command's sub command, it give other plugins an opportunity to extend it's sub command.
So if you want other plugins to extend your sub commands, you can use this util function to replace default yargs.commandDir
Current command name.
Current plugin name.
Yargs reference.
Often set to __dirname
.
Format options keys
Make compatible of param cases and camel cases
Get all plugins path mapping. Same name plugins would be overriden orderly. This function also influence final valid commands and configs.
Get application zignis config only.
Get Zignis cache instance by namespace
Get commbined config from whole environment.
Get Zignis internal cache instance
Get current node env setting
You can change the node-env-key in command args or zignis rc file
Print info message with green color.
Error message to log
Run hook in all valid plugins and return the combined results.
Plugins implement hook in module.exports
, could be generator function or promise function or non-function
For non-function, it will be used as hook data directly, likely to be returned by function
Hook name, suggest plugin defined hook include a prefix, e.g. zhike:hook
Options
Shortcut for checking if or not current env is development
Shortcut for checking if or not current env is production
Load core package.json
Load any package's package.json
package name
search paths
Print message with format and color.
Message to log
Compute md5.
Print a simple table.
A table style for zignis status
, if you don't like this style, can use Utils.table
Table columns
Table caption
Border options
Parse packages from yargs option
yarns option input, could be string or array
Package list
Sleep a while of ms
Split input by a specific char and blank.
input separated by comma
Split input by comma and blank.
input separated by comma
Print success message with green color.
Error message to log
Print warn message with yellow color.
Error message to log
Generated using TypeDoc
debug core