Python单击:让组在执行命令后执行代码 [英] Python Click: Having the group execute code AFTER a command
本文介绍了Python单击:让组在执行命令后执行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我定义了click.group()
,其中包含大约10个命令.我了解如何在命令中的代码之前使用一组代码来运行代码,但是我也想在每个命令运行之后运行一些代码.点击可以实现吗?
I have a click.group()
defined, with about 10 commands in it. I understand how to use a group to run code before the code in the command, but I also want to run some code AFTER each command is run. Is that possible with click?
推荐答案
您可以使用 查看全文