UNPKG

motion

Version:

motion - moving development forward

42 lines (39 loc) 1.81 kB
var helpers = require("./util/helpers") module.exports = function(req, next){ if (req.argv.help || req.argv.h) { helpers .log() .log(" Surge".bold, "– Single-command web publishing.", ("(v" + req.pkg.version + ")"). grey) .log() .log(" Usage:".grey) .log(" surge [options]") .log() .log(" Options:".grey) .log(" -p, --project path to projects asset directory (./)") .log(" -d, --domain domain of your project (<random>."+ req.config.platform +")") .log(" -a, --add adds user to list of collaborators (email address)") .log(" -r, --remove removes user from list of collaborators (email address)") .log(" -V, --version show the version number") .log(" -h, --help show this help message") .log() .log(" Shorthand usage:".grey) .log(" surge [project path] [domain]") .log() .log(" Additional commands:".grey) .log(" surge whoami show who you are logged in as") .log(" surge logout expire local token") .log(" surge login only performs authentication step") .log(" surge list list all domains you have access to") .log(" surge teardown tear down a published project") .log() .log(" Guides:".grey) .log(" Getting started " + "surge.sh/help/getting-started-with-surge".underline.grey) .log(" Custom domains " + "surge.sh/help/adding-a-custom-domain".underline.grey) .log(" Additional help " + "surge.sh/help".underline.grey) .log() .log(" When in doubt, run ".grey + "surge".green.underline + " from within you project directory.".grey) .log() } else { next() } }