Merge pull request #16 from orchardup/add-help-command
Add help command
This commit is contained in:
commit
804e2cdcb1
2 changed files with 16 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ class TopLevelCommand(Command):
|
|||
|
||||
Commands:
|
||||
build Build or rebuild services
|
||||
help Get help on a command
|
||||
kill Kill containers
|
||||
logs View output from containers
|
||||
ps List containers
|
||||
|
|
@ -103,6 +104,17 @@ class TopLevelCommand(Command):
|
|||
"""
|
||||
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):
|
||||
"""
|
||||
Force stop service containers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue