pub fn intro(title: &str) {
let _ = cliclack::intro(console::style(format!(" {title} ")).on_cyan().black().to_string());
}
pub fn step(msg: impl std::fmt::Display) {
let _ = cliclack::log::success(msg);
}
pub fn info(msg: impl std::fmt::Display) {
let _ = cliclack::log::info(msg);
}
pub fn warn(msg: impl std::fmt::Display) {
let _ = cliclack::log::warning(msg);
}
pub fn error(msg: impl std::fmt::Display) {
let _ = cliclack::log::error(msg);
}
pub fn skipped(msg: impl std::fmt::Display) {
let _ = cliclack::log::step(console::style(msg).dim().to_string());
}
pub fn note(title: impl std::fmt::Display, body: impl std::fmt::Display) {
let _ = cliclack::note(title, body);
}
pub fn outro(msg: impl std::fmt::Display) {
let _ = cliclack::outro(msg);
}
pub fn outro_cancel(msg: impl std::fmt::Display) {
let _ = cliclack::outro_cancel(msg);
}
pub fn dim(s: impl std::fmt::Display) -> String {
console::style(s).dim().to_string()
}
pub fn command(s: impl std::fmt::Display) -> String {
console::style(s).cyan().to_string()
}