diff options
| author | ruki <[email protected]> | 2020-06-30 21:35:01 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-30 21:35:01 +0800 |
| commit | 7210ca7ea63dd201cee8d10081fee8f065ec6c44 (patch) | |
| tree | 5037aea812f5fab79a8c2d6c11e351db5ba66143 /xmake/plugins | |
| parent | 2b80ef232b9a17cde8b144a37eb4f8ea77266900 (diff) | |
| parent | 4c54385b422e3c191b3a2a13d849774132a601a8 (diff) | |
Merge pull request #879 from OpportunityLiu/dev
fix auto complete
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/show/main.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/show/xmake.lua | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/show/main.lua b/xmake/plugins/show/main.lua index b1c7b3183..9503b1a75 100644 --- a/xmake/plugins/show/main.lua +++ b/xmake/plugins/show/main.lua @@ -23,7 +23,7 @@ import("core.base.option") -- show list function _show_list(name) - assert(import("lists." .. name, {try = true, anonymous = true}), "unknown list name(%s)", name)() + assert(#name > 0 and import("lists." .. name, {try = true, anonymous = true}), "unknown list name(%s)", name)() end -- main entry diff --git a/xmake/plugins/show/xmake.lua b/xmake/plugins/show/xmake.lua index 729d2eece..159eec1a6 100644 --- a/xmake/plugins/show/xmake.lua +++ b/xmake/plugins/show/xmake.lua @@ -42,7 +42,8 @@ task("show") , values = function (complete, opt) return import("list").lists() end}, - {'t', "target" , "kv" , nil , "Show the information of the given target."} + {'t', "target" , "kv" , nil , "Show the information of the given target." + , values = function (complete, opt) return import("private.utils.complete_helper.targets")(complete, opt) end } } } |
