How to use the inquirer/lib/objects/choices.prototype function in inquirer

To help you get started, we’ve selected a few inquirer 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 magda-io / magda / scripts / create-secrets / prompts / inquirer-fuzzy-path.js View on Github external
this.currentChoices.getChoice = choiceIndex => {
                let choice = Choices.prototype.getChoice.call(
                    this.currentChoices,
                    choiceIndex
                );
                return {
                    value: stripAnsi(choice.value),
                    name: stripAnsi(choice.name),
                    short: stripAnsi(choice.name)
                };
            };
        });
github adelsz / inquirer-fuzzy-path / index.js View on Github external
this.currentChoices.getChoice = (choiceIndex) => {
        const choice = Choices.prototype.getChoice.call(this.currentChoices, choiceIndex);
        return {
          value: stripAnsi(choice.value),
          name: stripAnsi(choice.name),
          short: stripAnsi(choice.name),
        };
      };
    });