From b183f6326762e3797ad65fe81051f1e03494e331 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 2 Jan 2019 22:56:04 +0800 Subject: use color.error and color.warning styles --- xmake/actions/require/impl/package.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/actions/require/impl/package.lua') diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index 22bb32358..c2b2f0617 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -334,7 +334,7 @@ function _get_confirm(packages) if confirm == nil then -- show tips - cprint("${bright yellow}note: ${default yellow}try installing these packages (pass -y to skip confirm)?") + cprint("${color.warning}note: ${clear}try installing these packages (pass -y to skip confirm)?") for _, package in ipairs(packages) do print(" -> %s %s %s", package:name(), package:version_str() or "", package:debug() and "(debug)" or "") end @@ -447,7 +447,7 @@ function install_packages(requires, opt) -- exists unsupported packages? if #packages_unsupported > 0 then -- show tips - cprint("${bright red}note: ${default red}the following packages are unsupported for $(plat)/$(arch)!") + cprint("${color.warning}note: ${clear}the following packages are unsupported for $(plat)/$(arch)!") for _, package in ipairs(packages_unsupported) do print(" -> %s %s", package:name(), package:version_str() or "") end -- cgit v1.3.1