refactor: 统一自研插件格式为 Liugin
18个插件: class Plugin -> class Liugin 10个插件: 测试块 Plugin() -> Liugin() 移除 ai_image.py 中多余的 Liugin = Plugin 别名 所有自研插件现统一使用 class Liugin 作为入口类名, 加载器保留 Plugin 兼容以支持第三方插件。
This commit is contained in:
1 parent
bfefbef475
commit
357cd0958f
21 files changed
+28
-29
No files matched your search
@@ -8,7 +8,7 @@ import colorsys
|
||||
from typing import List, Tuple
|
||||
|
||||
|
||||
class Plugin:
|
||||
class Liugin:
|
||||
"""颜色工具 - 格式转换、调色板、对比度检查"""
|
||||
|
||||
def __init__(self):
|
||||
@@ -447,7 +447,7 @@ class Plugin:
|
||||
|
||||
|
||||
def test_plugin():
|
||||
plugin = Plugin()
|
||||
plugin = Liugin()
|
||||
print("颜色工具测试:")
|
||||
print(plugin.handle('convert "#3498db"'))
|
||||
print(plugin.handle('contrast "#FFFFFF" "#000000"'))
|
||||
|
||||
Reference in new issue
Block a user