Skip to content

Commit 7270745

Browse files
authored
Added --tty flag to allow pseudo tty
2 parents ea490a7 + 12f2c00 commit 7270745

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

manof/image.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def run(self):
8080
if self.interactive:
8181
command += '--interactive '
8282

83+
# allocate a pseudo-tty
84+
if self.tty:
85+
command += '--tty '
86+
8387
# add rm if needed
8488
if self.rm_on_run:
8589
command += '--rm '
@@ -441,6 +445,10 @@ def detach(self):
441445
def interactive(self):
442446
return False
443447

448+
@property
449+
def tty(self):
450+
return False
451+
444452
@property
445453
def memory(self):
446454
"""

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ simplejson==3.8.2
33
Twisted==19.2.1
44
pytz==2016.7
55
colorama==0.3.3
6-
pygments==2.2.0
6+
pygments==2.2.0
7+
ruamel.yaml==0.16.0

0 commit comments

Comments
 (0)