1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

add is_macos_or_linux()

This commit is contained in:
2019-07-21 16:28:19 +08:00
parent 610871e5fc
commit 7b4a534659

View File

@@ -30,6 +30,10 @@ pub fn is_linux() -> bool {
} }
} }
pub fn is_macos_or_linux() -> bool {
is_macos() || is_linux()
}
pub enum MessageType { INFO, OK, WARN, ERROR, } pub enum MessageType { INFO, OK, WARN, ERROR, }
pub fn print_message_ex(color: Option<term::color::Color>, h: &str, message: &str) { pub fn print_message_ex(color: Option<term::color::Color>, h: &str, message: &str) {