How wendel-w/rsreminder works
RsReminder is a small CLI that reads user-provided passages and display settings, selects one passage at random, and prints it with optional alignment, wrapping, and color. The workflow and formatting helpers are all implemented in src/main.rs; the repository includes config.toml as a documented template. The source excerpt shows the runtime calls, but not the template contents.
Main entry points: main.rs Passage printing · config.toml Config template
Components 11
Input
- Config template
config.toml - Config loading
src/main.rs - CLI options
src/main.rs
Passage selection
- Random passage
src/main.rs
Terminal display
- Passage printing
src/main.rs - Text layout
src/main.rs - Color setup
src/main.rs - Hex conversion
src/main.rs - Color formatting
src/main.rs
Other components
- User
- Terminal
Connections 11
- User → Config template: copies
README.md - User → CLI options: runs
README.md - Config loading → Config template: reads settings
src/main.rs - CLI options → Random passage: provides options
src/main.rs - Config loading → Random passage: supplies passages
src/main.rs - Random passage → Passage printing: passes passage
src/main.rs - Passage printing → Text layout: gets dimensions
src/main.rs - Passage printing → Color setup: sets color
src/main.rs - Color setup → Hex conversion: converts hex
src/main.rs - Passage printing → Color formatting: formats lines
src/main.rs - Passage printing → Terminal: prints passage
src/main.rs