summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-03 12:10:22 +0800
committerGitHub <[email protected]>2026-02-03 12:10:22 +0800
commit1bcce9d85f07cae1f7ac9f3a3099047539d26c84 (patch)
tree1516224d2d661413fe5e786a67a83484784b2d76 /xmake/plugins/lua/xmake.lua
parent84ecebb4e9beaef3d046617c9c5ae3c1714a4aa8 (diff)
parent7a9f668793b387efc3d657ceedbd0ab913dab4e0 (diff)
Merge pull request #7284 from luadebug/stdin
Add `--stdin`
Diffstat (limited to 'xmake/plugins/lua/xmake.lua')
-rw-r--r--xmake/plugins/lua/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua
index 8ef6c3573..dee1707b6 100644
--- a/xmake/plugins/lua/xmake.lua
+++ b/xmake/plugins/lua/xmake.lua
@@ -45,6 +45,11 @@ task("lua")
{'l', "list" , "k" , nil , "List all scripts." }
, {'c', "command" , "k" , nil , "Run script as command" }
, {'d', "deserialize" , "kv" , nil , "Deserialize arguments starts with given prefix" }
+ , {nil, "stdin" , "k" , nil , "Run script from stdin",
+ "e.g.",
+ " - echo 'print(\"hello\")' | xmake lua --stdin",
+ " - cat script.lua | xmake lua --stdin"
+ }
, {nil, "script" , "v" , nil , "Run the given lua script name, file or module and enter interactive mode if no given script.",
"e.g.",
" - xmake lua (enter interactive mode)",