Implement kill and rm

This commit is contained in:
Aanand Prasad 2013-12-20 16:53:07 +00:00
commit 81093627fe
4 changed files with 51 additions and 0 deletions

View file

@ -71,6 +71,8 @@ class TopLevelCommand(Command):
run Run a one-off command
start Start services
stop Stop services
kill Kill containers
rm Remove stopped containers
"""
def docopt_options(self):
@ -186,6 +188,22 @@ class TopLevelCommand(Command):
"""
self.project.stop()
def kill(self, options):
"""
Kill all containers
Usage: kill
"""
self.project.kill()
def rm(self, options):
"""
Remove all stopped containers
Usage: rm
"""
self.project.remove_stopped()
def logs(self, options):
"""
View output from containers