Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds initial changes from grey colour to dim #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions lib/middleware/help.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
var helpers = require("./util/helpers")
var chalk = require('chalk')

module.exports = function(req, next){
if (req.argv.help || req.argv.h || req.argv["_"][0] === "help") {
helpers
.log()
.log(" Surge".bold, "– Single-command web publishing.", ("(v" + req.pkg.version + ")"). grey)
.log(" Surge".bold, "– Single-command web publishing.", chalk.dim("(v" + req.pkg.version + ")"))
.log()
.log(" Usage:".grey)
.log(chalk.dim(" Usage:"))
.log(" surge [options]")
.log()
.log(" Options:".grey)
.log(chalk.dim(" Options:"))
.log(" -p, --project path to projects asset directory (./)")
.log(" -d, --domain domain of your project (<random>.surge.sh)")
.log(" -e, --endpoint domain of API server (surge.sh)")
Expand All @@ -18,22 +19,22 @@ module.exports = function(req, next){
.log(" -V, --version show the version number")
.log(" -h, --help show this help message")
.log()
.log(" Shorthand usage:".grey)
.log(chalk.dim(" Shorthand usage:"))
.log(" surge [project path] [domain]")
.log()
.log(" Additional commands:".grey)
.log(chalk.dim(" Additional commands:"))
.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(chalk.dim(" Guides:"))
.log(" Getting started " + chalk.dim.underline("surge.sh/help/getting-started-with-surge"))
.log(" Custom domains " + chalk.dim.underline("surge.sh/help/adding-a-custom-domain"))
.log(" Additional help " + chalk.dim.underline("surge.sh/help"))
.log()
.log(" When in doubt, run ".grey + "surge".green.underline + " from within you project directory.".grey)
.log(chalk.dim(" When in doubt, run ") + chalk.green.underline("surge") + chalk.dim(" from within you project directory."))
.log()

} else {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"minimist": "1.1.1"
},
"devDependencies": {
"chalk": "1.1.1",
"mocha": "*"
},
"license": "ISC",
Expand Down