mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
implemented --step in v2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user