mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
implemented --step in v2
This commit is contained in:
parent
f6a08ce1ba
commit
88e1ef8c9b
4 changed files with 56 additions and 4 deletions
|
@ -201,3 +201,11 @@ class Display:
|
|||
self.display(new_msg, color='red', stderr=True)
|
||||
self._errors[new_msg] = 1
|
||||
|
||||
def prompt(self, msg):
|
||||
|
||||
if sys.stdout.encoding:
|
||||
msg = to_bytes(msg, sys.stdout.encoding)
|
||||
else:
|
||||
msg = to_bytes(msg)
|
||||
|
||||
return raw_input(msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue