How to use the prompt.history function in prompt

To help you get started, we’ve selected a few prompt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nordnet / cordova-hot-code-push-cli / src / init / app_config.js View on Github external
  ask: () => !prompt.history('isShortVersion').value && prompt.history('autoInstall').value
};
github tableflip / guvnor / lib / web / index.js View on Github external
conform: function (value) {
      return value === prompt.history('Enter a password (no characters will appear)').value
    }
  }], function (error, result) {
github lepisma / blackbird / bin / blackbird-setup.js View on Github external
ask: function() {
                return prompt.history("lfmEnable").value == "y";
            },
            default: config.lastfm.secret
github wise-team / steem-wise-cli / src / actions / init / InitAction.ts View on Github external
ask: () => {
                if (savePostingKey !== undefined) return savePostingKey;
                else {
                    return (
                        prompt
                            .history("savePostingKey")
                            .value.toLowerCase()
                            .substr(0, 1) === "y"
                    );
                }
            },
        };
github nordnet / cordova-hot-code-push-cli / src / init / app_config.js View on Github external
before: value => {
    if (value) {
      return value;
    }

    let contentDirUrl = prompt.history('contentDir').value;
    if (contentDirUrl.indexOf('/') !== contentDirUrl.length - 1) {
      contentDirUrl += '/';
    }

    return `${contentDirUrl}chcp.json`;
  }
};
github kununu / pact-cli / src / wizards.js View on Github external
        ask: () => prompt.history('ssl').value,
      },
github nordnet / cordova-hot-code-push-cli / src / init / app_config.js View on Github external
  ask: () => !prompt.history('isShortVersion').value
};
github nordnet / cordova-hot-code-push-cli / src / init / app_config.js View on Github external
  ask: () => !prompt.history('isShortVersion').value && prompt.history('autoDownload').value
};