diff options
| author | Akaps316 <[email protected]> | 2026-04-11 11:43:14 +0530 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-20 09:35:36 +0800 |
| commit | 8512dce671af24d2f293728bfdb9e65f81e5ed38 (patch) | |
| tree | 2028395b1f6f1127ed15ad94ad0ecfafe4ffbed7 /xmake/plugins/show/xmake.lua | |
| parent | 3a1b4e1719ba50b259afa27b450f06c39548003d (diff) | |
feat(show): export target dependency graph as JSON
Add a graph-oriented mode to `xmake show` for exporting target\ndependency relationships as JSON.\n\nThis adds `--target_graph` support for whole-project output and\noptional root-target filtering with `--target`.\n\nAdd a plugin test covering full-graph and single-target graph export.\n\nRefs #7475
Diffstat (limited to 'xmake/plugins/show/xmake.lua')
| -rw-r--r-- | xmake/plugins/show/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/show/xmake.lua b/xmake/plugins/show/xmake.lua index 331aeb468..3e3709877 100644 --- a/xmake/plugins/show/xmake.lua +++ b/xmake/plugins/show/xmake.lua @@ -32,6 +32,7 @@ task("show") {'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, "target_graph", "k", false, "Show the dependency graph of targets."}, {'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 +41,3 @@ task("show") } - |
