Add "fig build" command

This commit is contained in:
Ben Firshman 2014-01-02 15:28:33 +00:00
commit a39db86651
3 changed files with 20 additions and 1 deletions

View file

@ -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.