summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 22:57:36 +0800
committerruki <[email protected]>2019-01-03 11:45:37 +0800
commite6bdff43415c485114ae9a68a435923497fb3059 (patch)
tree73145bcb0143a957e95fd6d45e8e692e232bf53e /xmake/modules
parent2bf304a53d08b0d2f248732b4687ae8276aa5e5f (diff)
simplify error and warn styles
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/manager/apt/install.lua2
-rw-r--r--xmake/modules/package/manager/pacman/install.lua2
-rw-r--r--xmake/modules/package/manager/yum/install.lua2
-rw-r--r--xmake/modules/private/platform/check_xcode.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/package/manager/apt/install.lua b/xmake/modules/package/manager/apt/install.lua
index 838530581..12eed657b 100644
--- a/xmake/modules/package/manager/apt/install.lua
+++ b/xmake/modules/package/manager/apt/install.lua
@@ -59,7 +59,7 @@ function main(name, opt)
if confirm == nil then
-- show tips
- cprint("${color.warning.bright}note: ${clear}try installing %s with administrator permission?", name)
+ cprint("${bright color.warning}note: ${clear}try installing %s with administrator permission?", name)
cprint("please input: y (y/n)")
-- get answer
diff --git a/xmake/modules/package/manager/pacman/install.lua b/xmake/modules/package/manager/pacman/install.lua
index 5e5101786..3c7ae5e77 100644
--- a/xmake/modules/package/manager/pacman/install.lua
+++ b/xmake/modules/package/manager/pacman/install.lua
@@ -62,7 +62,7 @@ function main(name, opt)
if confirm == nil then
-- show tips
- cprint("${color.warning.bright}note: ${clear}try installing %s with administrator permission?", name)
+ cprint("${bright color.warning}note: ${clear}try installing %s with administrator permission?", name)
cprint("please input: y (y/n)")
-- get answer
diff --git a/xmake/modules/package/manager/yum/install.lua b/xmake/modules/package/manager/yum/install.lua
index 1d900c819..6465f7c0b 100644
--- a/xmake/modules/package/manager/yum/install.lua
+++ b/xmake/modules/package/manager/yum/install.lua
@@ -62,7 +62,7 @@ function main(name, opt)
if confirm == nil then
-- show tips
- cprint("${color.warning.bright}note: ${clear}try installing %s with administrator permission?", name)
+ cprint("${bright color.warning}note: ${clear}try installing %s with administrator permission?", name)
cprint("please input: y (y/n)")
-- get answer
diff --git a/xmake/modules/private/platform/check_xcode.lua b/xmake/modules/private/platform/check_xcode.lua
index f503c1a13..5434d59b7 100644
--- a/xmake/modules/private/platform/check_xcode.lua
+++ b/xmake/modules/private/platform/check_xcode.lua
@@ -39,7 +39,7 @@ function main(config, optional)
elseif not optional then
-- failed
- cprint("${color.error.bright}please run:")
+ cprint("${bright color.error}please run:")
cprint(" - xmake config --xcode=xxx")
cprint("or - xmake global --xcode=xxx")
raise()