From 7ffcc9f8e2a98d63f7f6880b9a3e4553439583c6 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 11 Aug 2026 23:45:05 +0800 Subject: add global modules and rewrite addon tests --- tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua (limited to 'tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua') diff --git a/tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua b/tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua new file mode 100644 index 000000000..0cf3a0386 --- /dev/null +++ b/tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua @@ -0,0 +1,5 @@ +import("core.base.option") + +function main() + print("hello from custom-plugin: %s", option.get("name") or "world") +end -- cgit v1.3.1