mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
implement exec
Resolves #593 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
This commit is contained in:
parent
1502c5a14d
commit
d28c5dda92
5 changed files with 110 additions and 1 deletions
|
|
@ -43,6 +43,10 @@ class DocoptCommand(object):
|
|||
|
||||
def get_handler(self, command):
|
||||
command = command.replace('-', '_')
|
||||
# we certainly want to have "exec" command, since that's what docker client has
|
||||
# but in python exec is a keyword
|
||||
if command == "exec":
|
||||
command = "exec_command"
|
||||
|
||||
if not hasattr(self, command):
|
||||
raise NoSuchCommand(command, self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue