diff options
Diffstat (limited to 'xmake/core/tasks/lua.lua')
| -rwxr-xr-x | xmake/core/tasks/lua.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/xmake/core/tasks/lua.lua b/xmake/core/tasks/lua.lua new file mode 100755 index 000000000..be5bea0d0 --- /dev/null +++ b/xmake/core/tasks/lua.lua @@ -0,0 +1,43 @@ +-- define task +task("lua") + + -- set menu + set_task_menu({ + -- xmake l + shortname = 'l' + + -- usage + , usage = "xmake lua|l [options] [script] [arguments]" + + -- description + , description = "Run the lua script." + + -- options + , options = + { + {'f', "file", "kv", nil, "Read a given xmake.lua file." } + , {'P', "project", "kv", nil, "Change to the given project directory." + , "Search priority:" + , " 1. The Given Command Argument" + , " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR" + , " 3. The Current Directory" } + + , {} + , {'s', "string", "k", nil, "Run the lua string script." } + + , {} + , {'v', "verbose", "k", nil, "Print lots of verbose information." } + , {nil, "version", "k", nil, "Print the version number and exit." } + , {'h', "help", "k", nil, "Print this help message and exit." } + + , {} + , {nil, "script", "v", nil, "Run the given lua script." + , " - The script name from the xmake tool directory" + , " - The script file" + , " - The script string" } + , {nil, "arguments", "vs", nil, "The script arguments" } + } + }) + + + |
