summaryrefslogtreecommitdiff
path: root/xmake/actions/global/xmake.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-20 20:30:31 +0800
committerOpportunity <[email protected]>2020-01-20 22:21:47 +0800
commit3364333877dc8a579f08b54099fda653948e07ab (patch)
tree2c2d5b6dabd5937827f9ae0cbc511b8a2f16f5d4 /xmake/actions/global/xmake.lua
parent5f96933d1ad672cc5b29df88a78b32ff4cdd3ebc (diff)
improve tab complete
Diffstat (limited to 'xmake/actions/global/xmake.lua')
-rw-r--r--xmake/actions/global/xmake.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/xmake/actions/global/xmake.lua b/xmake/actions/global/xmake.lua
index ca062c608..f294d2804 100644
--- a/xmake/actions/global/xmake.lua
+++ b/xmake/actions/global/xmake.lua
@@ -41,16 +41,19 @@ task("global")
-- options
, options =
{
- {'c', "clean", "k", nil, "Clean the cached configure and configure all again." }
- , {nil, "menu", "k", nil, "Configure with a menu-driven user interface." }
+ {'c', "clean", "k" , nil , "Clean the cached configure and configure all again." }
+ , {nil, "menu", "k" , nil , "Configure with a menu-driven user interface." }
, {category = "."}
- , {nil, "theme", "kv", "default","The theme name." }
- , {nil, "debugger", "kv", "auto", "The Debugger Program Path." }
+ , {nil, "theme", "kv", "default" , "The theme name."
+ , values = function ()
+ return import("core.theme.theme.names")()
+ end }
+ , {nil, "debugger", "kv", "auto" , "The Debugger Program Path." }
-- show platform menu options
, {category = "Platform Configuration"}
- , function ()
+ , function ()
-- import platform menu
import("core.platform.menu")