Expand description
§cleansys-core
Shared, framework-free logic reused by both the cleansys-tui (Ratatui)
and cleansys-gui (Iced) front-ends of CleanSys.
| Module | What lives here |
|---|---|
cleaners | System- and user-level cleaner implementations |
model | UI-agnostic domain model (CleanerItem, CleanerCategory, Status) |
auth | Sudo/root authentication helpers |
utils | Permission checks, formatting, confirmation prompts |
This crate has NO TUI or GUI dependencies.
Re-exports§
pub use auth::authenticate_sudo;pub use cleaners::cleaned_item::CleanedItem;pub use cleaners::cleaned_item::CleanedItemType;pub use cleaners::cleaned_item::CleanerFn;pub use cleaners::cleaned_item::CleaningResult;pub use cleaners::cleaned_item::RunOptions;pub use cleaners::system_cleaners;pub use cleaners::user_cleaners;pub use model::load_categories;pub use model::CleanerCategory;pub use model::CleanerItem;pub use model::Status;pub use settings::load_settings;pub use settings::save_settings;pub use settings::Settings;pub use theme::theme_by_index;pub use theme::theme_index_by_name;pub use theme::AppTheme;pub use theme::Rgb;pub use theme::THEME_COUNT;pub use theme::THEME_NAMES;pub use utils::check_root;pub use utils::confirm;pub use utils::format_size;pub use utils::get_size;pub use utils::print_error;pub use utils::print_header;
Modules§
- auth
- Authentication helpers (sudo elevation) shared by all front-ends. Sudo/root authentication helpers shared by the TUI password prompt and the GUI authentication dialog.
- cleaners
- Cleaner implementations for system and user-level cleanup operations. Cleaner modules for system and user-level cleanup operations.
- model
- Framework-agnostic domain model (cleaner items, categories, run status). Framework-agnostic domain model shared by the TUI and GUI front-ends.
- settings
- Persisted user preferences (theme, etc.), shared by the TUI and GUI. Simple JSON-backed settings persistence, shared by the TUI and GUI.
- theme
- Platform-agnostic UI theme presets, shared by the TUI and GUI.
- utils
- Utility functions for permissions, formatting, and error handling.