summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-19 22:31:53 +0800
committerruki <[email protected]>2022-10-19 22:31:53 +0800
commit0d3dc74e78b1d93de70c1a5e053afc9099e89029 (patch)
tree9a869289057199ecfba7f5a4df04406c316634a2
parent372a43da77fc966f28626e96ee9cbb5501da6951 (diff)
show components
-rw-r--r--xmake/modules/private/action/require/info.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua
index 7a6c096c6..3bc8123e5 100644
--- a/xmake/modules/private/action/require/info.lua
+++ b/xmake/modules/private/action/require/info.lua
@@ -246,6 +246,12 @@ function main(requires_raw)
end
end
+ -- show components
+ local components = instance:get("components")
+ if components then
+ cprint(" -> ${color.dump.string_quote}components${clear}: %s", table.concat(table.wrap(components), ", "))
+ end
+
-- show references
local references = instance:references()
if references then