diff options
| author | ruki <[email protected]> | 2026-04-20 17:35:48 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-20 17:35:48 +0800 |
| commit | 55f8d448564f7cc198edb4db506ec7c18ca8f0f6 (patch) | |
| tree | 6822b239d43091d20037a99b6ffa9fd7e449f1db /xmake/plugins/show/xmake.lua | |
| parent | 3a1b4e1719ba50b259afa27b450f06c39548003d (diff) | |
| parent | 4e3f6b16db88b9c1afad898a7f5dfeaecdfd0f27 (diff) | |
Merge pull request #7490 from xmake-io/show
Export target dependency graph as json/dot
Diffstat (limited to 'xmake/plugins/show/xmake.lua')
| -rw-r--r-- | xmake/plugins/show/xmake.lua | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/xmake/plugins/show/xmake.lua b/xmake/plugins/show/xmake.lua index 331aeb468..ef3ea0fe2 100644 --- a/xmake/plugins/show/xmake.lua +++ b/xmake/plugins/show/xmake.lua @@ -30,8 +30,23 @@ task("show") return import("list").lists() end}, {'g', "group", "kv", nil, "Filter targets by the given group name."}, - {nil, "json", "k", false, "Show information with json format."}, - {nil, "pretty", "k", false, "Enable pretty formatted json output."}, + {nil, "json", "k", false, "Show information with json format (deprecated, use --format=json)."}, + {nil, "pretty", "k", false, "Enable pretty formatted output."}, + {nil, "format", "kv", nil, "Set the output format.", + "e.g.", + " - xmake show --format=json", + " - xmake show --info=depgraph --format=dot", + "values: json (for all), dot (for --info=depgraph only)", + values = {"plain", "json", "dot"}}, + {'i', "info", "kv", nil, "Show the given information.", + "e.g.", + " - xmake show --info=depgraph", + " - xmake show --info=depgraph --target=app", + " - xmake show --info=depgraph --format=json", + " - xmake show --info=depgraph --format=dot", + values = function (complete, opt) + return import("list").infos() + end}, {'t', "target", "kv", nil, "Show the information of the given target.", values = function (complete, opt) return import("private.utils.complete_helper.targets")(complete, opt) @@ -40,4 +55,3 @@ task("show") } - |
