summaryrefslogtreecommitdiff
path: root/xmake/plugins/macro/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-09 20:27:48 +0800
committerruki <[email protected]>2016-06-09 20:27:48 +0800
commitcb9ce25dd0e7669189124a89bf6171190707b13e (patch)
tree52a7953866430eb2c85eba180140c7195e26ac28 /xmake/plugins/macro/xmake.lua
parent2429c51cf05dd13bc481704ad0a59e1bcef03ade (diff)
improve the macro plugin
Diffstat (limited to 'xmake/plugins/macro/xmake.lua')
-rwxr-xr-xxmake/plugins/macro/xmake.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/plugins/macro/xmake.lua b/xmake/plugins/macro/xmake.lua
index f28c5b49f..4b6fd5ccd 100755
--- a/xmake/plugins/macro/xmake.lua
+++ b/xmake/plugins/macro/xmake.lua
@@ -57,13 +57,16 @@ task("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."
+ , {nil, "import", "kv", nil, "Import the given macro file or directory."
, ".e.g"
- , " xmake macro --import=/xxx/macro.lua test" }
- , {nil, "export", "kv", nil, "Export the given macro to file."
+ , " 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/macro.lua test"
+ , " xmake macro --export=/xxx/macrodir" }
, {}
, {nil, "name", "v", ".", "Set the macro name."
, ".e.g"