How can I split my Click commands, each with a set of sub-commands, into multiple files?

后端 未结 6 575
清歌不尽
清歌不尽 2020-12-07 12:47

I have one large click application that I\'ve developed, but navigating through the different commands/subcommands is getting rough. How do I organize my commands into separ

6条回答
  •  天涯浪人
    2020-12-07 13:36

    I'm not an click expert, but it should work by just importing your files into the main one. I would move all commands in separate files and have one main file importing the other ones. That way it is easier to control the exact order, in case it is important for you. So your main file would just look like:

    import commands_main
    import commands_cloudflare
    import commands_uptimerobot
    

提交回复
热议问题