# claracf/whatnow architecture

> Architecture diagram of the GitHub repository claracf/whatnow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/claracf/whatnow
- Repository: https://github.com/claracf/whatnow

## Overview

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: [`src/app.rs`](https://github.com/claracf/whatnow/blob/main/src/app.rs) (Command application), [`src/cli/command.rs`](https://github.com/claracf/whatnow/blob/main/src/cli/command.rs) (Command parser), [`src/main.rs`](https://github.com/claracf/whatnow/blob/main/src/main.rs) (Program entry), [`src/model/checklist.rs`](https://github.com/claracf/whatnow/blob/main/src/model/checklist.rs) (Checklist model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["CLI interface"]
  node_parser["Command parser<br/>[command.rs]"]
  node_help["Command help<br/>[task.rs]"]
end

subgraph group_workflow["Application workflow"]
  node_entry["Program entry<br/>[main.rs]"]
  node_app["Command application<br/>[app.rs]"]
  node_paths["Home directories<br/>[utils.rs]"]
end

subgraph group_domain["Checklist domain"]
  node_checklist["Checklist model<br/>[checklist.rs]"]
  node_task["Task model<br/>[task.rs]"]
  node_files["Checklist JSON files"]
end

node_user(("CLI user"))

node_user -->|"enters commands"| node_parser
node_parser -->|"uses descriptions"| node_help
node_entry -->|"parses arguments"| node_parser
node_entry -->|"runs application"| node_app
node_entry -->|"resolves directories"| node_paths
node_app -->|"dispatches commands"| node_parser
node_app -->|"lists data files"| node_paths
node_app -->|"loads and saves"| node_checklist
node_app -->|"creates and updates"| node_task
node_checklist -->|"contains and manages"| node_task
node_checklist -->|"reads and writes"| node_files

click node_parser "https://github.com/claracf/whatnow/blob/main/src/cli/command.rs"
click node_help "https://github.com/claracf/whatnow/blob/main/src/cli/help/task.rs"
click node_entry "https://github.com/claracf/whatnow/blob/main/src/main.rs"
click node_app "https://github.com/claracf/whatnow/blob/main/src/app.rs"
click node_paths "https://github.com/claracf/whatnow/blob/main/src/utils.rs"
click node_checklist "https://github.com/claracf/whatnow/blob/main/src/model/checklist.rs"
click node_task "https://github.com/claracf/whatnow/blob/main/src/model/task.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_parser,node_help,node_user toneBlue
class node_entry,node_app,node_paths toneAmber
class node_checklist,node_task,node_files toneMint
```

## Components

### CLI interface

- [Command parser](https://github.com/claracf/whatnow/blob/main/src/cli/command.rs): `src/cli/command.rs`
- [Command help](https://github.com/claracf/whatnow/blob/main/src/cli/help/task.rs): `src/cli/help/task.rs`

### Application workflow

- [Program entry](https://github.com/claracf/whatnow/blob/main/src/main.rs): `src/main.rs`
- [Command application](https://github.com/claracf/whatnow/blob/main/src/app.rs): `src/app.rs`
- [Home directories](https://github.com/claracf/whatnow/blob/main/src/utils.rs): `src/utils.rs`

### Checklist domain

- [Checklist model](https://github.com/claracf/whatnow/blob/main/src/model/checklist.rs): `src/model/checklist.rs`
- [Task model](https://github.com/claracf/whatnow/blob/main/src/model/task.rs): `src/model/task.rs`
- **Checklist JSON files**

### Other components

- **CLI user**

## Connections

- CLI user → Command parser: enters commands (evidence: `src/cli/command.rs`)
- Command parser → Command help: uses descriptions (evidence: `src/cli/command.rs`)
- Program entry → Command parser: parses arguments (evidence: `src/main.rs`)
- Program entry → Command application: runs application (evidence: `src/main.rs`)
- Program entry → Home directories: resolves directories (evidence: `src/main.rs`)
- Command application → Command parser: dispatches commands (evidence: `src/app.rs`)
- Command application → Home directories: lists data files (evidence: `src/app.rs`)
- Command application → Checklist model: loads and saves (evidence: `src/app.rs`)
- Command application → Task model: creates and updates (evidence: `src/app.rs`)
- Checklist model → Task model: contains and manages (evidence: `src/model/checklist.rs`)
- Checklist model → Checklist JSON files: reads and writes (evidence: `src/model/checklist.rs`)
