diff options
| author | ruki <[email protected]> | 2020-03-16 23:50:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-16 17:01:24 +0800 |
| commit | b5f6aee3dc8be12521c05d369eb20fea2622a0c7 (patch) | |
| tree | 4e9de2de1d04a8783638537862e865ef5d66432d | |
| parent | 9380776bfeeb904ce9ed09347809aa1f929c28cc (diff) | |
improve dump targets
| -rw-r--r-- | xmake/modules/private/diagnosis/dump_targets.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/diagnosis/dump_targets.lua b/xmake/modules/private/diagnosis/dump_targets.lua index 865d67daf..a02aeace2 100644 --- a/xmake/modules/private/diagnosis/dump_targets.lua +++ b/xmake/modules/private/diagnosis/dump_targets.lua @@ -42,7 +42,7 @@ end function main(targetname) config.load() for _, target in ipairs(_get_targets(targetname)) do - print("target(%s): %s", target:name(), target:targetkind()) + cprint("${bright}target(%s):${clear} %s", target:name(), target:targetkind()) local deps = target:get("deps") if deps then cprint(" ${color.dump.string}deps:") @@ -68,6 +68,7 @@ function main(targetname) cprint(" ${color.dump.string}rules:") cprint(" ${yellow}->${clear} %s", table.concat(table.wrap(rules), ", ")) end + print("") end end |
