Questions tagged [inquirer]

77 questions
-1
votes
1 answer

Why does inquirer ask twice?

I wrote a little program that allows the user (using inquirer) to either edit or add a new line to a file import inquirer def edit_line(file): a_file = open(file, 'r') print('Your file: \n' + open(file).read()) list_of_lines =…
-1
votes
1 answer

Is there a way to use an array of objects to populate choices in inquirer?

How do I get the choices to be just a specific value from all objects in the array? Here's an example array: var array = [{ a: 1, b: 2, }, { a: 3, b: 4, }, { a: 5, b: 6, }] And then later the inquirer is something…
Valborg
  • 95
  • 2
  • 10
1 2 3 4 5
6