pacsea 0.8.2

A fast, friendly TUI for browsing and installing Arch and AUR packages with built-in news and security scanning
Documentation
//! Configuration module for Pacsea theme, settings, and keybinds.
//!
//! This module is split into submodules for maintainability:
//! - `skeletons`: Default configuration file templates
//! - `theme_loader`: Theme loading and parsing
//! - `settings_save`: Functions to persist settings changes
//! - `settings_ensure`: Settings initialization and migration
//! - `tests`: Test module

/// Settings initialization and migration module.
mod settings_ensure;
/// Settings persistence module.
mod settings_save;
/// Default configuration file templates module.
mod skeletons;
/// Theme loading and parsing module.
pub mod theme_loader;

#[cfg(test)]
mod tests;

// Re-export skeleton constants for theme and first-run `repos.conf` seeding
pub use skeletons::{REPOS_SKELETON_CONTENT, THEME_SKELETON_CONTENT};

// Re-export theme loading functions
pub use theme_loader::try_load_theme_with_diagnostics;

// Re-export settings save functions
pub use settings_save::{
    save_app_start_mode, save_fuzzy_search, save_mirror_count, save_news_filter_installed_only,
    save_news_filter_show_advisories, save_news_filter_show_arch_news,
    save_news_filter_show_aur_comments, save_news_filter_show_aur_updates,
    save_news_filter_show_pkg_updates, save_news_filters_collapsed, save_news_max_age_days,
    save_results_filter_show_canonical, save_scan_do_clamav, save_scan_do_custom,
    save_scan_do_semgrep, save_scan_do_shellcheck, save_scan_do_sleuth, save_scan_do_trivy,
    save_scan_do_virustotal, save_selected_countries, save_show_install_pane,
    save_show_keybinds_footer, save_show_recent_pane, save_sort_mode, save_startup_news_configured,
    save_startup_news_max_age_days, save_startup_news_show_advisories,
    save_startup_news_show_arch_news, save_startup_news_show_aur_comments,
    save_startup_news_show_aur_updates, save_startup_news_show_pkg_updates,
    save_virustotal_api_key,
};

// Re-export settings ensure/migration functions
pub use settings_ensure::{
    ensure_settings_keys_present, ensure_theme_keys_present, maybe_migrate_legacy_confs,
};