diff options
Diffstat (limited to 'xmake/actions/run/xmake.lua')
| -rw-r--r-- | xmake/actions/run/xmake.lua | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/xmake/actions/run/xmake.lua b/xmake/actions/run/xmake.lua index bfdce3af1..a44eb1158 100644 --- a/xmake/actions/run/xmake.lua +++ b/xmake/actions/run/xmake.lua @@ -49,21 +49,8 @@ task("run") " --workdir=`pwd`" } , {} , {nil, "target", "v", nil , "The target name. It will run all default targets if this parameter is not specified." - , values = function () - return try{ - function () - import("core.project.project") - local targets = project.targets() - local runable = {} - for k, v in pairs(targets) do - if v:script("run") or v:get("kind") == "binary" then - table.insert(runable, k) - end - end - return runable - end - } - end } + , values = function (complete, opt) return import("private.utils.complete_helper.runable_targets")(complete, opt) end } + , {nil, "arguments", "vs", nil , "The target arguments" } } } |
