Consolidated common options into custom decorators

This commit is contained in:
Gina Häußge committed 2015-10-29 16:26:50 +01:00
1 parent f68ce34351
commit d9f0fb1667
3 files changed
+68 -47

No files matched your search

-3
View File
@@ -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):