beets/test/rsrc/beetsplug/test.py
Serene-Arc a6e5201ff3 Apply formatting tools to all files
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00

19 lines
490 B
Python

from beets import ui
from beets.plugins import BeetsPlugin
class TestPlugin(BeetsPlugin):
def __init__(self):
super().__init__()
self.is_test_plugin = True
def commands(self):
test = ui.Subcommand("test")
test.func = lambda *args: None
# Used in CompletionTest
test.parser.add_option("-o", "--option", dest="my_opt")
plugin = ui.Subcommand("plugin")
plugin.func = lambda *args: None
return [test, plugin]