Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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

@Olegas

No description provided.

@saintedlama

I'd need this functionality too!

@jamesrom

+1

@tuvistavie

Any progress on this?
Why is not this merge?

@diosney

+1

@Sequoia

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

@Sequoia

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

@diosney

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

@Sequoia

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. @Olegas
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/prompt.js
View
7 lib/prompt.js
@@ -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.