mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 09:04:33 +01:00
19 lines
490 B
Python
19 lines
490 B
Python
from beets.plugins import BeetsPlugin
|
|
from beets import ui
|
|
|
|
|
|
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]
|