use std::collections::HashMap;
use std::path::Path;
use colored::ColoredString;
use colored::Colorize;
pub const DEFAULT_PARTY_CONF: &str = "./party.toml";
pub type OptionEnv = Option<HashMap<String, String>>;
pub fn check_file_path(file_path: &str) -> anyhow::Result<()> {
if !Path::new(file_path).exists() {
Err(anyhow::Error::msg(format!(
"File {} does not exist",
file_path
)))
} else {
Ok(())
}
}
pub fn make_counter_blue(step: usize, out_of: usize) -> ColoredString {
let counter = format!("[{}/{}]", step, out_of);
counter.blue()
}
pub fn make_message_bright_green(message: &str) -> ColoredString {
message.green()
}
pub fn make_message_bright_red(message: &str) -> ColoredString {
message.bright_red()
}
pub const HOURGLASS: char = '\u{23F3}';
pub const CROSS: char = '\u{274C}';
pub const CHECK: char = '\u{2705}';
pub const HORSE: char = '\u{1F3C7}';
pub const POPPER: char = '\u{1F389}';