summaryrefslogtreecommitdiff
path: root/xmake/plugins/macro/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-01-21 17:02:13 +0800
committerruki <[email protected]>2017-01-21 17:02:13 +0800
commit50bc191501037fee117bee79191d21d326a0ed82 (patch)
treec8f5dd93a4e2de8d369bafdb770f5148fd05f8d1 /xmake/plugins/macro/xmake.lua
parentb028a68c3f65f827ae2b7ff0ad644a86bb4597fa (diff)
add set_table api for interpreter
Diffstat (limited to 'xmake/plugins/macro/xmake.lua')
-rwxr-xr-xxmake/plugins/macro/xmake.lua84
1 files changed, 42 insertions, 42 deletions
diff --git a/xmake/plugins/macro/xmake.lua b/xmake/plugins/macro/xmake.lua
index cb52134f6..92dd4b32e 100755
--- a/xmake/plugins/macro/xmake.lua
+++ b/xmake/plugins/macro/xmake.lua
@@ -32,48 +32,48 @@ task("macro")
on_run("main")
-- set menu
- set_menu({
- -- usage
- usage = "xmake macro|m [options] [name] [arguments]"
+ set_menu {
+ -- usage
+ usage = "xmake macro|m [options] [name] [arguments]"
- -- description
- , description = "Run the given macro."
+ -- description
+ , description = "Run the given macro."
- -- xmake m
- , shortname = 'm'
+ -- xmake m
+ , shortname = 'm'
- -- options
- , options =
- {
- {'b', "begin", "k", nil, "Start to record macro."
- , ".e.g"
- , "Record macro with name: test"
- , " xmake macro --begin"
- , " xmake config --plat=macosx"
- , " xmake clean"
- , " xmake -r"
- , " xmake package"
- , " xmake macro --end test" }
- , {'e', "end", "k", nil, "Stop to record macro." }
- , {}
- , {nil, "show", "k", nil, "Show the content of the given macro." }
- , {'l', "list", "k", nil, "List all macros." }
- , {'d', "delete", "k", nil, "Delete the given macro." }
- , {'c', "clear", "k", nil, "Clear the all macros." }
- , {}
- , {nil, "import", "kv", nil, "Import the given macro file or directory."
- , ".e.g"
- , " xmake macro --import=/xxx/macro.lua test"
- , " xmake macro --import=/xxx/macrodir" }
- , {nil, "export", "kv", nil, "Export the given macro to file or directory."
- , ".e.g"
- , " xmake macro --export=/xxx/macro.lua test"
- , " xmake macro --export=/xxx/macrodir" }
- , {}
- , {nil, "name", "v", ".", "Set the macro name."
- , ".e.g"
- , " Run the given macro: xmake macro test"
- , " Run the anonymous macro: xmake macro ." }
- , {nil, "arguments", "vs", nil, "Set the macro arguments." }
- }
- })
+ -- options
+ , options =
+ {
+ {'b', "begin", "k", nil, "Start to record macro."
+ , ".e.g"
+ , "Record macro with name: test"
+ , " xmake macro --begin"
+ , " xmake config --plat=macosx"
+ , " xmake clean"
+ , " xmake -r"
+ , " xmake package"
+ , " xmake macro --end test" }
+ , {'e', "end", "k", nil, "Stop to record macro." }
+ , {}
+ , {nil, "show", "k", nil, "Show the content of the given macro." }
+ , {'l', "list", "k", nil, "List all macros." }
+ , {'d', "delete", "k", nil, "Delete the given macro." }
+ , {'c', "clear", "k", nil, "Clear the all macros." }
+ , {}
+ , {nil, "import", "kv", nil, "Import the given macro file or directory."
+ , ".e.g"
+ , " xmake macro --import=/xxx/macro.lua test"
+ , " xmake macro --import=/xxx/macrodir" }
+ , {nil, "export", "kv", nil, "Export the given macro to file or directory."
+ , ".e.g"
+ , " xmake macro --export=/xxx/macro.lua test"
+ , " xmake macro --export=/xxx/macrodir" }
+ , {}
+ , {nil, "name", "v", ".", "Set the macro name."
+ , ".e.g"
+ , " Run the given macro: xmake macro test"
+ , " Run the anonymous macro: xmake macro ." }
+ , {nil, "arguments", "vs", nil, "Set the macro arguments." }
+ }
+ }