def invoke(self, command_name, **kwargs):
"""
Runs a [sub]command by name, passing context automatically.
"""
context = click.get_current_context()
command = cli.get_command(context, command_name)
context.invoke(command, **kwargs)
评论列表
文章目录