diff options
| author | ruki <[email protected]> | 2019-01-02 22:56:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-02 11:36:27 +0800 |
| commit | b183f6326762e3797ad65fe81051f1e03494e331 (patch) | |
| tree | 7305b48ff7d58870f70fa1e44a6ad473992936ac /xmake/actions/require/impl | |
| parent | 5190a07502ec7c962f0db3a628c0b05f3877cfff (diff) | |
use color.error and color.warning styles
Diffstat (limited to 'xmake/actions/require/impl')
| -rw-r--r-- | xmake/actions/require/impl/action/download.lua | 2 | ||||
| -rw-r--r-- | xmake/actions/require/impl/action/install.lua | 4 | ||||
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xmake/actions/require/impl/action/download.lua b/xmake/actions/require/impl/action/download.lua index 5f1c6f4bf..ed9c52bae 100644 --- a/xmake/actions/require/impl/action/download.lua +++ b/xmake/actions/require/impl/action/download.lua @@ -207,7 +207,7 @@ function main(package) -- verbose? if option.get("verbose") and errors then - cprint("${bright red}error: ${clear}%s", errors) + cprint("${color.verbose.error}error: ${clear}%s", errors) end -- trace diff --git a/xmake/actions/require/impl/action/install.lua b/xmake/actions/require/impl/action/install.lua index 82c9b7472..7955680c7 100644 --- a/xmake/actions/require/impl/action/install.lua +++ b/xmake/actions/require/impl/action/install.lua @@ -132,11 +132,11 @@ function main(package) -- verbose? if option.get("verbose") and errors then - cprint("${bright red}error: ${clear}%s", errors) + cprint("${color.verbose.error}error: ${clear}%s", errors) end -- trace - cprint("${red}failed") + cprint("${color.error}failed") -- failed if not package:requireinfo().optional then 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 |
