From 75ff24ce88100396c3a7c8dcd87afa190b8b402c Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Mon, 19 Jun 2023 12:01:21 +0800 Subject: add readonly flag in xrepo info results --- xmake/modules/private/action/require/info.lua | 9 +++++++-- 1 file 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 -- cgit v1.3.1