diff options
| author | ruki <[email protected]> | 2024-04-23 22:48:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-23 22:48:44 +0800 |
| commit | 458ca5e8a1dd6b073e8f5102ae0b105cfd40e0f4 (patch) | |
| tree | 55ea354ec1c4423f96fa63004982c3bdf2c2492b /xmake/plugins/show/xmake.lua | |
| parent | 316c9cdee35d47e57219412d7ad39326966626c0 (diff) | |
show list with json
Diffstat (limited to 'xmake/plugins/show/xmake.lua')
| -rw-r--r-- | xmake/plugins/show/xmake.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/show/xmake.lua b/xmake/plugins/show/xmake.lua index f652ed620..bae15471c 100644 --- a/xmake/plugins/show/xmake.lua +++ b/xmake/plugins/show/xmake.lua @@ -25,11 +25,12 @@ task("show") usage = "xmake show [options] [arguments]", description = "Show the given project information.", options = { - {'l', "list", "kv", nil, "Show the values list of the given name.", + {'l', "list", "kv", nil, "Show the values list of the given name.", values = function (complete, opt) return import("list").lists() end}, - {'t', "target", "kv", nil, "Show the information of the given target.", + {nil, "json", "k", false, "Show information with json format."}, + {'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} |
