summaryrefslogtreecommitdiff
path: root/xmake/templates/c/xmake.cli/project/src/lua/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-23 22:49:32 +0800
committerruki <[email protected]>2020-04-23 10:57:14 +0800
commit639f71ed0bf1ba2e2abf0cb91e784793a540c019 (patch)
tree9b10fac75bbedad1d4ca6276540dd569d9a1e1da /xmake/templates/c/xmake.cli/project/src/lua/main.lua
parentc6c35ff6929f6e49d300b0b586588347a5a97e2c (diff)
add xmake.cli template
Diffstat (limited to 'xmake/templates/c/xmake.cli/project/src/lua/main.lua')
-rw-r--r--xmake/templates/c/xmake.cli/project/src/lua/main.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/templates/c/xmake.cli/project/src/lua/main.lua b/xmake/templates/c/xmake.cli/project/src/lua/main.lua
new file mode 100644
index 000000000..d87daf102
--- /dev/null
+++ b/xmake/templates/c/xmake.cli/project/src/lua/main.lua
@@ -0,0 +1,10 @@
+import("core.base.option")
+import("lib.lni.test")
+
+function main ()
+ print(test.hello())
+ local argv = option.get("arguments")
+ if argv then
+ print(argv)
+ end
+end