diff options
Diffstat (limited to 'xmake/modules/private/action/require/info.lua')
| -rw-r--r-- | xmake/modules/private/action/require/info.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua index 7a6c096c6..270316ac9 100644 --- a/xmake/modules/private/action/require/info.lua +++ b/xmake/modules/private/action/require/info.lua @@ -246,6 +246,21 @@ function main(requires_raw) end end + -- show components + local components = instance:get("components") + if components then + cprint(" -> ${color.dump.string_quote}components${clear}: ") + for _, comp in ipairs(components) do + cprintf(" -> ${cyan}%s${clear}: ", comp) + local plaindeps = instance:extraconf("components", comp, "deps") + if plaindeps then + print("%s", table.concat(table.wrap(plaindeps), ", ")) + else + print("") + end + end + end + -- show references local references = instance:references() if references then |
