summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-19 00:42:27 +0800
committerruki <[email protected]>2025-08-28 11:35:53 +0800
commit9de0be5040e3feda8aface1174cd1e6fc696fe4e (patch)
treeb9256e58a7acfe57d8d6252277f8247b74bfa56d /xmake/core/base/task.lua
parent5c371c00ead44993b83f26a754c32a3f8a799aa4 (diff)
bind sandbox
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua21
1 files changed, 6 insertions, 15 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index df865b92d..29cca38f2 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -344,28 +344,21 @@ function task._load(filepath)
if not ok then
return nil, errors
end
-
- -- ok?
return tasks
end
-- get task apis
function task.apis()
-
- return
- {
- values =
- {
+ return {
+ values = {
-- task.set_xxx
"task.set_category" -- main, action, plugin, task (default)
- }
- , dictionary =
- {
+ },
+ dictionary = {
-- task.set_xxx
"task.set_menu"
- }
- , script =
- {
+ },
+ script = {
-- task.on_xxx
"task.on_run"
}
@@ -490,8 +483,6 @@ end
-- run given task
function task:run(...)
-
- -- check
local on_run = self:get("run")
if not on_run then
return false, string.format("task(\"%s\"): no run script, please call on_run() first!", self:fullname())