def main():
"""Main CLI entrypoint."""
options = docopt(__doc__, version=VERSION)
setup_logger(options.get('--verbose', False))
priority_order = ["cycle", "asg", "instances", "deploy", "patch", "toggle", "upstream", "publish", "verify", "service"]
cmd_opts = options.copy()
if cmd_opts["<service>"] is not None:
cmd_opts["service"] = True
for cmd in priority_order:
if cmd_opts[cmd]:
logging.info('Running {0} command'.format(cmd))
CommandClass = commands[cmd]
command = CommandClass(options)
return command.run()
print("Unknown command")
# Allow local execution for debugging
评论列表
文章目录