You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/expect/files/test_command.py

13 lines
214 B
Python

import sys
try:
input_function = raw_input
except NameError:
input_function = input
prompts = sys.argv[1:] or ['foo']
for prompt in prompts:
user_input = input_function(prompt)
print(user_input)