adding "fig pull [SERVICE]" to pull service images
Fixes #158 Signed-off-by: Luke Amdor <luke.amdor@gmail.com>
This commit is contained in:
parent
dc857a7ad5
commit
e51851c884
4 changed files with 24 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ class TopLevelCommand(Command):
|
|||
kill Kill containers
|
||||
logs View output from containers
|
||||
ps List containers
|
||||
pull Pulls service images
|
||||
rm Remove stopped containers
|
||||
run Run a one-off command
|
||||
scale Set number of containers for a service
|
||||
|
|
@ -182,6 +183,14 @@ class TopLevelCommand(Command):
|
|||
])
|
||||
print(Formatter().table(headers, rows))
|
||||
|
||||
def pull(self, project, options):
|
||||
"""
|
||||
Pulls images for services.
|
||||
|
||||
Usage: pull [SERVICE...]
|
||||
"""
|
||||
project.pull(service_names=options['SERVICE'])
|
||||
|
||||
def rm(self, project, options):
|
||||
"""
|
||||
Remove stopped service containers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue