Skip to content

Commit

Permalink
Added --tty flag to allow pseudo tty
Browse files Browse the repository at this point in the history
  • Loading branch information
FelGel authored Jul 28, 2019
2 parents ea490a7 + 12f2c00 commit 7270745
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions manof/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def run(self):
if self.interactive:
command += '--interactive '

# allocate a pseudo-tty
if self.tty:
command += '--tty '

# add rm if needed
if self.rm_on_run:
command += '--rm '
Expand Down Expand Up @@ -441,6 +445,10 @@ def detach(self):
def interactive(self):
return False

@property
def tty(self):
return False

@property
def memory(self):
"""
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ simplejson==3.8.2
Twisted==19.2.1
pytz==2016.7
colorama==0.3.3
pygments==2.2.0
pygments==2.2.0
ruamel.yaml==0.16.0

0 comments on commit 7270745

Please sign in to comment.