mirror of
https://gitea.com/Lerking/XtendR.git
synced 2026-06-25 19:20:06 +02:00
Updated plugin system. /JL
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
from plugin_system import PluginInterface
|
||||
from xtendr import XtendRBase
|
||||
|
||||
class ExamplePlugin(PluginInterface):
|
||||
def execute(self, *args, **kwargs):
|
||||
print("ExamplePlugin executed with args:", args, "and kwargs:", kwargs)
|
||||
return "Execution complete!"
|
||||
class ExamplePlugin(XtendRBase):
|
||||
"""Example plugin implementation.
|
||||
|
||||
Example:
|
||||
>>> plugin = ExamplePlugin()
|
||||
>>> plugin.run()
|
||||
ExamplePlugin is running!
|
||||
>>> plugin.stop()
|
||||
ExamplePlugin has stopped!
|
||||
"""
|
||||
def run(self):
|
||||
print("ExamplePlugin is running!")
|
||||
|
||||
def stop(self):
|
||||
print("ExamplePlugin has stopped!")
|
||||
|
||||
Reference in New Issue
Block a user