pub const APP_NAME: &str = "GitKraft";
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const DESCRIPTION: &str =
"A modern Git IDE with a desktop GUI (Iced) and a terminal UI (Ratatui), \
sharing one Rust core.";
pub const AUTHOR_NAME: &str = "Sorin Irimies";
pub const AUTHOR_GITHUB: &str = "sorinirimies";
pub const AUTHOR_URL: &str = "https://github.com/sorinirimies";
pub const REPO_URL: &str = "https://github.com/sorinirimies/gitkraft";
pub const LICENSE: &str = "MIT";
pub fn version_label() -> String {
format!("v{VERSION}")
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn version_label_has_prefix() {
assert_eq!(version_label(), format!("v{}", VERSION));
assert!(!VERSION.is_empty());
}
}