summaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-05 00:49:22 +0200
committermo8it <mo8it@proton.me>2024-04-05 00:49:22 +0200
commit157fe016e5f335e04b4dd322623d35a244faa2ab (patch)
tree88af2f0c99f7ecd53ddbee605f9cc7bb3ccb778a /src/ui.rs
parent5a233398ebe7078767404bd05ca06e08b37fb3d4 (diff)
Remove ui.rs
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/ui.rs b/src/ui.rs
deleted file mode 100644
index 22d60d9..0000000
--- a/src/ui.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-macro_rules! print_emoji {
- ($emoji:expr, $sign:expr, $color: ident, $fmt:literal, $ex:expr) => {{
- use console::{style, Emoji};
- use std::env;
- let formatstr = format!($fmt, $ex);
- if env::var_os("NO_EMOJI").is_some() {
- println!("{} {}", style($sign).$color(), style(formatstr).$color());
- } else {
- println!(
- "{} {}",
- style(Emoji($emoji, $sign)).$color(),
- style(formatstr).$color()
- );
- }
- }};
-}
-
-macro_rules! warn {
- ($fmt:literal, $ex:expr) => {{
- print_emoji!("⚠️ ", "!", red, $fmt, $ex);
- }};
-}
-
-macro_rules! success {
- ($fmt:literal, $ex:expr) => {{
- print_emoji!("✅ ", "✓", green, $fmt, $ex);
- }};
-}