Add "fig build" command
This commit is contained in:
parent
853d8ad280
commit
a39db86651
3 changed files with 20 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ class TopLevelCommand(Command):
|
|||
--version Print version and exit
|
||||
|
||||
Commands:
|
||||
build Build or rebuild services
|
||||
kill Kill containers
|
||||
logs View output from containers
|
||||
ps List containers
|
||||
|
|
@ -86,6 +87,14 @@ class TopLevelCommand(Command):
|
|||
options['version'] = "fig %s" % __version__
|
||||
return options
|
||||
|
||||
def build(self, options):
|
||||
"""
|
||||
Build or rebuild services.
|
||||
|
||||
Usage: build [SERVICE...]
|
||||
"""
|
||||
self.project.build(service_names=options['SERVICE'])
|
||||
|
||||
def kill(self, options):
|
||||
"""
|
||||
Kill containers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue