use jarvis_core::{config, APP_LOG_DIR}; #[tauri::command] pub fn get_app_version() -> String { config::APP_VERSION.unwrap_or("error").to_string() } #[tauri::command] pub fn get_author_name() -> String { config::AUTHOR_NAME.unwrap_or("error").to_string() } #[tauri::command] pub fn get_repository_link() -> String { config::REPOSITORY_LINK.unwrap_or("error").to_string() } #[tauri::command] pub fn get_upstream_link() -> String { config::UPSTREAM_REPOSITORY_LINK.to_string() } #[tauri::command] pub fn get_issues_link() -> String { config::ISSUES_LINK.to_string() } #[tauri::command] pub fn get_python_fork_link() -> String { config::PYTHON_FORK_LINK.to_string() } #[tauri::command] pub fn get_log_file_path() -> String { APP_LOG_DIR.get() .map(|p| p.display().to_string()) .unwrap_or_else(|| "unknown".to_string()) }