summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxpxz <[email protected]>2023-06-19 12:01:21 +0800
committerGitHub <[email protected]>2023-06-19 12:01:21 +0800
commit75ff24ce88100396c3a7c8dcd87afa190b8b402c (patch)
tree984a0e9d45a3c476ee2a85118c503e09ac56a59d
parentceeb77310ba39e94acd1c513254079582000ceb9 (diff)
add readonly flag in xrepo info results
-rw-r--r--xmake/modules/private/action/require/info.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua
index 87925e459..d880ab9e5 100644
--- a/xmake/modules/private/action/require/info.lua
+++ b/xmake/modules/private/action/require/info.lua
@@ -255,9 +255,14 @@ function main(requires_raw)
printf(configs_extra.description)
end
if configs_extra.default ~= nil then
- printf(" (default: %s)", configs_extra.default)
+ io.write(" (default: %s", configs_extra.default)
elseif configs_extra.type ~= nil and configs_extra.type ~= "string" then
- printf(" (type: %s)", configs_extra.type)
+ io.write(" (type: %s", configs_extra.type)
+ end
+ if configs_extra.readonly ~= nil then
+ io.write(", readonly)")
+ else
+ io.write(")")
end
print("")
if configs_extra.values then