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:
@@ -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 fn print_message_ex(color: Option<term::color::Color>, h: &str, message: &str) {
|
||||
|
||||
Reference in New Issue
Block a user