How claracf/whatnow works
whatnow is a small command-line checklist manager. A user invokes checklist or task commands; the CLI parses them, then the application loads checklist data, applies the requested operation, prints results where relevant, and saves the updated checklists. Checklists contain tasks, which carry priority, deadline, and completion state. Persistence is JSON files under the data directory. The sampled code supports these workflow links; the README is brief, and no separate configuration behavior beyond home-directory resolution is inferred.
Main entry points: app.rs Command application · command.rs Command parser · main.rs Program entry · checklist.rs Checklist model
Components 9
CLI interface
- Command parser
src/cli/command.rs - Command help
src/cli/help/task.rs
Application workflow
- Program entry
src/main.rs - Command application
src/app.rs - Home directories
src/utils.rs
Checklist domain
- Checklist model
src/model/checklist.rs - Task model
src/model/task.rs - Checklist JSON files
Other components
- CLI user
Connections 11
- CLI user → Command parser: enters commands
src/cli/command.rs - Command parser → Command help: uses descriptions
src/cli/command.rs - Program entry → Command parser: parses arguments
src/main.rs - Program entry → Command application: runs application
src/main.rs - Program entry → Home directories: resolves directories
src/main.rs - Command application → Command parser: dispatches commands
src/app.rs - Command application → Home directories: lists data files
src/app.rs - Command application → Checklist model: loads and saves
src/app.rs - Command application → Task model: creates and updates
src/app.rs - Checklist model → Task model: contains and manages
src/model/checklist.rs - Checklist model → Checklist JSON files: reads and writes
src/model/checklist.rs