summaryrefslogtreecommitdiff
path: root/tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-11 23:45:05 +0800
committerruki <[email protected]>2026-08-11 23:45:05 +0800
commit7ffcc9f8e2a98d63f7f6880b9a3e4553439583c6 (patch)
treef2bf7c4e0e9806fd157cc3243a45f691fd282988 /tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua
parent9e6abef8b0a26d7098d79749dd68b5a2590512c4 (diff)
add global modules and rewrite addon tests
Diffstat (limited to 'tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua')
-rw-r--r--tests/actions/addon/custom-plugin/plugins/hello_addon/main.lua5
1 files changed, 5 insertions, 0 deletions
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