From 96c10fe99ee96cbcde62358747657ec5f8d79993 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 5 Nov 2020 23:12:46 +0800 Subject: add license to package/info --- xmake/actions/require/info.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake/actions/require/info.lua b/xmake/actions/require/info.lua index 1d71741d1..a9ad796ef 100644 --- a/xmake/actions/require/info.lua +++ b/xmake/actions/require/info.lua @@ -102,6 +102,12 @@ function main(requires_raw) cprint(" -> ${magenta}version${clear}: %s", version) end + -- show license + local license = instance:get("license") + if license then + cprint(" -> ${magenta}license${clear}: %s", license) + end + -- show urls local urls = instance:urls() if urls and #urls > 0 then -- cgit v1.3.1