How akene-uzezi/clockwork works
Clockwork is a command-line countdown timer with a one-shot Timer mode and a recurring Pomodoro work/break mode. The workflow starts at the CLI entry point, dispatches by the -p flag, parses mode-specific durations, runs a one-second countdown that responds to pause input, and displays progress; Timer mode also reports completion. The source excerpts show these calls directly. README documents stop input and terminal bells, while sampled code shows stop handling in shared input and bells in completion/transition messages; no external services or persistent state are involved.
Main entry points: main.go Mode entry · timer.go Timer mode · pomodoro.go Pomodoro mode · util.go Input controls
Components 7
CLI dispatch
- Mode entry
main.go
Countdown modes
- Timer mode
timer.go - Pomodoro mode
pomodoro.go
Input and display
- Input controls
util.go - Timer display
util.go - Pomodoro display
util.go
Other components
- CLI user
Connections 8
- CLI user → Mode entry: starts
README.md - Mode entry → Timer mode: dispatches
main.go - Mode entry → Pomodoro mode: dispatches
main.go - Timer mode → Input controls: starts reader
timer.go - Pomodoro mode → Input controls: starts reader
pomodoro.go - Timer mode → Timer display: prints progress
timer.go - Pomodoro mode → Pomodoro display: prints progress
pomodoro.go - CLI user → Input controls: enters controls
README.md