diff options
| author | ruki <[email protected]> | 2020-11-05 23:12:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-05 23:12:46 +0800 |
| commit | 96c10fe99ee96cbcde62358747657ec5f8d79993 (patch) | |
| tree | d3d77faaeea6f2db34a5dfa87f1643a51fca7753 | |
| parent | 360933b005ee28f911d2364075691f5123c6006a (diff) | |
add license to package/info
| -rw-r--r-- | xmake/actions/require/info.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
