How crazycoder009/update-watch works
update-watch is a per-user terminal update-and-news reporter, not an updater: it reads package-manager history, checks pending packages, estimates upgrade time, and presents cached distro news. The main path is CLI → cached status or refresh → distro backend/news → local cache → terminal output. Setup, shell integration, diagnostics, and scheduled refresh are separate product capabilities. Edges reflect shown imports, calls, or README-documented behavior; unsampled implementation details are not inferred.
Main entry points: fetch.py Refresh coordinator · status.py Status and news views · installer.py Setup and diagnostics · distro.py Distro detection
Components 18
Command and setup
- Command router
update_watch/cli.py - Setup and diagnostics
update_watch/installer.py - Shell hooks
update_watch/shells.py
Update and news collection
- Refresh coordinator
update_watch/fetch.py - Distro detection
update_watch/distro.py - Backend contract
update_watch/backends/base.py - Arch package checks
update_watch/backends/arch.py - Debian package checks
update_watch/backends/debian.py - Fedora package checks
update_watch/backends/fedora.py - Feed parsing and flags
update_watch/news.py
Summary and estimates
- Status and news views
update_watch/status.py - Upgrade-time estimate
update_watch/estimate.py
User configuration and cache
- Config and state files
update_watch/config.py - Process and formatting helpers
update_watch/util.py
Other components
- Terminal user
- Systemd user timer
- Distro RSS/Atom feeds
- Terminal output
Connections 32
- Terminal user → Command router: runs command
README.md - Command router → Status and news views: routes status
update_watch/cli.py - Command router → Refresh coordinator: routes fetch
update_watch/cli.py - Command router → Setup and diagnostics: routes setup
update_watch/cli.py - Command router → Config and state files: loads config
update_watch/cli.py - Setup and diagnostics → Shell hooks: configures hooks
update_watch/installer.py - Setup and diagnostics → Config and state files: saves settings
update_watch/installer.py - Setup and diagnostics → Refresh coordinator: initial refresh
update_watch/installer.py - Setup and diagnostics → Distro detection: detects family
update_watch/installer.py - Setup and diagnostics → Feed parsing and flags: selects feeds
update_watch/installer.py - Systemd user timer → Refresh coordinator: runs periodically
README.md - Status and news views → Config and state files: reads cache
update_watch/status.py - Status and news views → Distro detection: selects backend
update_watch/status.py - Status and news views → Upgrade-time estimate: estimates duration
update_watch/status.py - Status and news views → Refresh coordinator: spawns stale refresh
update_watch/status.py - Status and news views → Terminal output: prints views
README.md - Refresh coordinator → Config and state files: loads and saves state
update_watch/fetch.py - Refresh coordinator → Distro detection: gets backend
update_watch/fetch.py - Refresh coordinator → Feed parsing and flags: refreshes feeds
update_watch/fetch.py - Refresh coordinator → Backend contract: requests package data
update_watch/fetch.py - Distro detection → Arch package checks: selects Arch
update_watch/distro.py - Distro detection → Debian package checks: selects Debian
update_watch/distro.py - Distro detection → Fedora package checks: selects Fedora
update_watch/distro.py - Arch package checks → Backend contract: implements contract
update_watch/backends/arch.py - Debian package checks → Backend contract: implements contract
update_watch/backends/debian.py - Fedora package checks → Backend contract: implements contract
update_watch/backends/fedora.py - Arch package checks → Process and formatting helpers: runs commands
update_watch/backends/arch.py - Debian package checks → Process and formatting helpers: runs commands
update_watch/backends/debian.py - Fedora package checks → Process and formatting helpers: runs commands
update_watch/backends/fedora.py - Feed parsing and flags → Distro RSS/Atom feeds: fetches feeds
update_watch/news.py - Refresh coordinator → Config and state files: persists refresh results
update_watch/fetch.py - Status and news views → Process and formatting helpers: formats display
update_watch/status.py