vibe-action 0.0.1

Command router — execute shell commands and LLM prompts via simple YAML actions.
//! Application metadata and CLI styling utilities.
//! Provides version info, help text formatting, and CLI styling configuration.

use clap::builder::Styles;
use colored::Colorize;

/// Returns the application version from Cargo.toml
pub fn app_version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}

/// Returns the application name as a static string slice.
pub fn app_name() -> &'static str {
    "vibe-action"
}

pub fn app_about() -> String {
    format!(
        r#"

{} - AI-native command router

{}"#,
        "Vibe Action".bright_green().bold(),
        "Part of Vibe tools ecosystem".italic()
    )
}

/// Returns CLI styling configuration
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)
}