How raand0/minical works
Minical is a lightweight terminal calendar for navigating months and years; it does not manage events or reminders. The main workflow starts the CLI, prepares user configuration, initializes a terminal screen, then handles navigation and renders the selected calendar. Separate CLI options print today’s date or generate a default config. The README documents these capabilities; source excerpts show the main calls and rendering/configuration flow, but not every runtime detail.
Main entry points: loadConfig.go Config lifecycle · main.go Application entry · renderer.go Screen renderer · cmd.go CLI options
Components 16
CLI entry
- Application entry
src/main.go - CLI options
src/cmd.go - Date output
src/cmd.go
User configuration
- User config file
- Config lifecycle
src/loadConfig.go - Config parser
src/parser.go - Color settings
src/loadConfig.go
Calendar navigation
- Terminal event loop
src/terminal.go - Calendar grid
src/renderer.go - Grid cache
src/renderer.go
Terminal display
- Screen renderer
src/renderer.go - Header rendering
src/renderer.go - Calendar rendering
src/renderer.go - Footer rendering
src/renderer.go - Text drawing
src/terminal.go
Other components
- User
Connections 18
- User → Application entry: runs calendar
README.md - Application entry → CLI options: parses options
src/main.go - Application entry → Config lifecycle: checks config
src/main.go - Application entry → Terminal event loop: starts interface
src/main.go - CLI options → Date output: prints date
src/cmd.go - CLI options → Config lifecycle: generates config
src/cmd.go - Config lifecycle → User config file: creates or opens
src/loadConfig.go - Config lifecycle → Config parser: parses file
src/loadConfig.go - Config lifecycle → Color settings: parses colors
src/loadConfig.go - Terminal event loop → Screen renderer: renders view
src/terminal.go - Screen renderer → Header rendering: renders header
src/renderer.go - Screen renderer → Calendar rendering: renders calendar
src/renderer.go - Screen renderer → Footer rendering: renders footer
src/renderer.go - Calendar rendering → Grid cache: gets grid
src/renderer.go - Grid cache → Calendar grid: populates grid
src/renderer.go - Header rendering → Text drawing: draws text
src/renderer.go - Calendar rendering → Text drawing: draws text
src/renderer.go - Footer rendering → Text drawing: draws text
src/renderer.go