use clap::builder::Styles;
use colored::Colorize;
use crate::utils::constants::CONFIG_VERSION;
pub fn app_version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
pub fn config_version() -> &'static str {
CONFIG_VERSION
}
pub fn app_name() -> &'static str {
"vibe-action"
}
pub fn app_name_pretty() -> &'static str {
"Vibe Action"
}
pub fn app_about() -> String {
format!(
r#"
{} - command router for shell and LLM tasks via YAML pipelines
{}
"#,
app_name_pretty().bright_green().bold(),
"Part of Vibe tools ecosystem".italic()
)
}
pub fn app_styles() -> Styles {
Styles::styled()
.header(clap_cargo::style::HEADER)
.usage(clap_cargo::style::USAGE)
.literal(clap_cargo::style::LITERAL)
.placeholder(clap_cargo::style::PLACEHOLDER)
.error(clap_cargo::style::ERROR)
.valid(clap_cargo::style::VALID)
.invalid(clap_cargo::style::INVALID)
}