Consolidated common options into custom decorators
This commit is contained in:
1 parent
f68ce34351
commit
d9f0fb1667
3 files changed
+68
-47
No files matched your search
@@ -10,10 +10,8 @@ import logging
|
||||
|
||||
from octoprint.cli import pass_octoprint_ctx, OctoPrintContext
|
||||
|
||||
|
||||
#~~ "octoprint plugin:command" commands
|
||||
|
||||
|
||||
class OctoPrintPluginCommands(click.MultiCommand):
|
||||
"""
|
||||
Custom `click.MultiCommand` implementation that collects commands from
|
||||
@@ -75,7 +73,6 @@ class OctoPrintPluginCommands(click.MultiCommand):
|
||||
|
||||
return result
|
||||
|
||||
|
||||
@click.group(cls=OctoPrintPluginCommands)
|
||||
@pass_octoprint_ctx
|
||||
def plugin_commands(obj):
|
||||
|
||||
Reference in new issue
Block a user