Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prompt.prompt issue #127

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/checkbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
pprint(answers)
2 changes: 1 addition & 1 deletion examples/confirm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
},
]

answers = prompt.prompt(questions, style=custom_style_1)
answers = prompt(questions, style=custom_style_1)
pprint(answers)

2 changes: 1 addition & 1 deletion examples/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
pprint(answers)
4 changes: 2 additions & 2 deletions examples/expand.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
* example for expand question type
* run example by typing `python example/checkbox.py` in your console
* run example by typing `python example/expand.py` in your console
"""
from PyInquirer import style_from_dict, Token, prompt, print_json, Separator

Expand Down Expand Up @@ -41,5 +41,5 @@
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
print_json(answers)
4 changes: 2 additions & 2 deletions examples/hierarchical.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def ask_direction():
'message': 'Which direction would you like to go?',
'choices': ['Forward', 'Right', 'Left', 'Back']
}
answers = prompt.prompt(directions_prompt)
answers = prompt(directions_prompt)
return answers['direction']

# TODO better to use while loop than recursion!
Expand Down Expand Up @@ -67,7 +67,7 @@ def encounter2a():


def encounter2b():
prompt.prompt({
prompt({
'type': 'list',
'name': 'weapon',
'message': 'Pick one',
Expand Down
2 changes: 1 addition & 1 deletion examples/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def get_delivery_options(answers):
},
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
pprint(answers)
2 changes: 1 addition & 1 deletion examples/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
print_json(answers)
2 changes: 1 addition & 1 deletion examples/pizza.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ def validate(self, document):
}
]

answers = prompt.prompt(questions, style=custom_style_3)
answers = prompt(questions, style=custom_style_3)
print('Order receipt:')
pprint(answers)
2 changes: 1 addition & 1 deletion examples/rawlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)
print_json(answers)
2 changes: 1 addition & 1 deletion examples/when.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def dislikes_bacon(answers):
}
]

answers = prompt.prompt(questions, style=custom_style_2)
answers = prompt(questions, style=custom_style_2)

print_json(answers)