Expand description
Hazelnut - Terminal-based automated file organizer
A Hazel-like file organization tool with a TUI interface.
Re-exports§
pub use config::Config;pub use rules::Action;pub use rules::Condition;pub use rules::Rule;pub use rules::RuleEngine;pub use theme::Theme;pub use watcher::Watcher;
Modules§
- app
- TUI Application module
- autostart
- Auto-start functionality for hazelnutd daemon
- config
- Configuration management
- ipc
- Inter-process communication between TUI and daemon
- notifications
- Desktop notifications for error alerts
- rules
- Rule engine - conditions and actions for file organization
- theme
- Theme configuration and colors.
- watcher
- File system watcher
Enums§
- Package
Manager - Detected package manager for installation
- Version
Check - Result of a version check
Constants§
- VERSION
- Current version from Cargo.toml
Functions§
- check_
for_ updates_ crates_ io - Check for updates using crates.io API (no rate limits).
- check_
for_ updates_ crates_ io_ timeout - Check for updates using crates.io API with custom timeout.
- clock_
ticks_ per_ sec - Safe wrapper around
libc::sysconf. - current_
uid - Safe wrapper around
libc::getuid. - detect_
package_ manager - Detect how hazelnut was installed
- expand_
path - Expand ~ and environment variables ($VAR, ${VAR}) in a path
- format_
uptime - Format a duration in seconds as a human-readable uptime string.
- process_
is_ running - Safe wrapper around
libc::kill. Returnstrueif the signal was delivered. - read_
process_ uptime - Read process uptime on Linux by parsing /proc.
Returns a formatted uptime string or
Noneif unavailable. - run_
update - Run the update command and return the result.