mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Add help command
This commit is contained in:
parent
c06456da37
commit
b1e7f548f4
@ -202,6 +202,10 @@ Build or rebuild services.
|
|||||||
|
|
||||||
Services are built once and then tagged as `project_service`, e.g. `figtest_db`. If you change a service's `Dockerfile` or the contents of its build directory, you can run `fig build` to rebuild it.
|
Services are built once and then tagged as `project_service`, e.g. `figtest_db`. If you change a service's `Dockerfile` or the contents of its build directory, you can run `fig build` to rebuild it.
|
||||||
|
|
||||||
|
#### help
|
||||||
|
|
||||||
|
Get help on a command.
|
||||||
|
|
||||||
#### kill
|
#### kill
|
||||||
|
|
||||||
Force stop service containers.
|
Force stop service containers.
|
||||||
|
@ -76,6 +76,7 @@ class TopLevelCommand(Command):
|
|||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
build Build or rebuild services
|
build Build or rebuild services
|
||||||
|
help Get help on a command
|
||||||
kill Kill containers
|
kill Kill containers
|
||||||
logs View output from containers
|
logs View output from containers
|
||||||
ps List containers
|
ps List containers
|
||||||
@ -99,6 +100,17 @@ class TopLevelCommand(Command):
|
|||||||
"""
|
"""
|
||||||
self.project.build(service_names=options['SERVICE'])
|
self.project.build(service_names=options['SERVICE'])
|
||||||
|
|
||||||
|
def help(self, options):
|
||||||
|
"""
|
||||||
|
Get help on a command.
|
||||||
|
|
||||||
|
Usage: help COMMAND
|
||||||
|
"""
|
||||||
|
command = options['COMMAND']
|
||||||
|
if not hasattr(self, command):
|
||||||
|
raise NoSuchCommand(command, self)
|
||||||
|
raise SystemExit(getdoc(getattr(self, command)))
|
||||||
|
|
||||||
def kill(self, options):
|
def kill(self, options):
|
||||||
"""
|
"""
|
||||||
Kill containers.
|
Kill containers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user