Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

If prompt.message is disabled, don't show extra delimiter at the beginning of the line #61

Open
wants to merge 1 commit into from

8 participants

Oleg Elifantiev Christoph Walcher Stephen Mathieson Dave Irvine James Romeril Daniel Perez Diosney Sarmiento Sequoia McDowell
Oleg Elifantiev

No description provided.

Christoph Walcher

I'd need this functionality too!

James Romeril

+1

Daniel Perez

Any progress on this?
Why is not this merge?

Diosney Sarmiento

+1

Sequoia McDowell

:+1:
Is this project actively maintained? This option seems like a no-brainer...

Sequoia McDowell

fdgj 467u5e67b24w6ejy5d7k46859ypiu[o0;p-]'80[=\
k-/l;+=[
']

Diosney Sarmiento

I really don't know :( it will be a shame if so, I use this in a couple of projects :(

Sequoia McDowell

I can't take it on rn unfortunately so I'd wait 'til the next time I have active need for this again, but if anyone needs the feature now, fork, publish on NPM, start taking PRs, and publicize your tool as a continuation of this tool which has clearly been abandoned.

:sparkles: The Power of Free Software Compels You! :sparkles:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 2, 2012
  1. Oleg Elifantiev
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/prompt.js
7 lib/prompt.js
View
@@ -413,8 +413,11 @@ prompt.getInput = function (prop, callback) {
defaultLine = schema.default;
name = prop.description || schema.description || propName;
raw = prompt.colors
- ? [prompt.message, delim + name.grey, delim.grey]
- : [prompt.message, delim + name, delim];
+ ? [name.grey, delim.grey]
+ : [name, delim];
+
+ if (prompt.message)
+ raw.unshift(prompt.message, delim);
prop = {
schema: schema,
Something went wrong with that request. Please try again.