#![allow(dead_code)]
use console::{style, Style};
pub fn success() -> Style {
Style::new().green()
}
pub fn error() -> Style {
Style::new().red().bold()
}
pub fn warning() -> Style {
Style::new().yellow()
}
pub fn info() -> Style {
Style::new().cyan()
}
pub fn muted() -> Style {
Style::new().dim()
}
pub fn package(name: &str) -> String {
style(name).green().to_string()
}
pub fn version(ver: &str) -> String {
style(ver).dim().to_string()
}
pub fn fatal(msg: &str) -> ! {
eprintln!("\n{} {}\n", style("error:").red().bold(), msg);
std::process::exit(1)
}
pub fn is_interactive() -> bool {
use std::io::IsTerminal;
std::io::stdin().is_terminal()
}