diff options
| author | Saikari <[email protected]> | 2026-02-01 16:14:46 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-01 16:14:46 +0300 |
| commit | faca264f8ea0fb695f6bc8b3a9d1411f901f054b (patch) | |
| tree | 33ea177b8dcc1fd70bc41fcc56e47cc13a593b08 /xmake/plugins/lua/xmake.lua | |
| parent | 9d45443b6cf3a6bb2a0e0f6ab30347cb826c700d (diff) | |
refactor: simplify stdin handling by removing redundant checks and streamlining usage examples
Diffstat (limited to 'xmake/plugins/lua/xmake.lua')
| -rw-r--r-- | xmake/plugins/lua/xmake.lua | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua index 8b60c96d3..bb9308378 100644 --- a/xmake/plugins/lua/xmake.lua +++ b/xmake/plugins/lua/xmake.lua @@ -47,18 +47,8 @@ task("lua") , {'d', "deserialize" , "kv" , nil , "Deserialize arguments starts with given prefix" } , {nil, "stdin" , "k" , nil , "Run script from stdin", "e.g.", - " - CMD", - " - Single: echo print(\"hello\") | xmake lua --stdin", - " - Multiline: (echo print('1') && echo print('2')) | xmake lua --stdin", - " - File: type script.lua | xmake lua --stdin", - " - PWSH", - " - Single: Write-Output 'print(\"hello\")' | xmake lua --stdin", - " - Multiline: Write-Output \"print('1')`nprint('2')\" | xmake lua --stdin", - " - File: Get-Content script.lua | xmake lua --stdin", - " - SH", - " - Single: echo 'print(\"hello\")' | xmake lua --stdin", - " - Multiline: (echo 'print(\"1\")'; echo 'print(\"2\")') | xmake lua --stdin", - " - File: cat script.lua | xmake lua --stdin" + " - 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.", |
