How shenek/ucelofka works
Ucelofka is a Rust invoice-management application with a command-line interface, a terminal UI, and a web entry point, backed by versioned YAML data models. The main workflow dispatches CLI commands to domain actions; the storage layer reads and writes records, while invoice construction combines issuer, customer, account, and entry data. The tree and excerpts support the CLI and TUI structure, but do not show enough web routing or action-to-storage calls to map those connections confidently.
Main entry points: lib.rs Versioned data models · v2.rs Invoice models · actions Domain actions · tui TUI domain screens
Components 21
Application entry points
- CLI dispatcher
ucelofka/src/main.rs - Web entry point
ucelofka/src/web.rs
Domain actions
- Domain actions
ucelofka/src/actions - Invoice actions
ucelofka/src/actions/invoice.rs - Project actions
ucelofka/src/actions/project.rs - Template actions
ucelofka/src/actions/template.rs
Data and persistence
- YAML record storage
ucelofka/src/storage.rs - Versioned data models
ucelofka-data/src/lib.rs - Account model
ucelofka-data/src/account/v1.rs - Customer models
ucelofka-data/src/customer/v1.rs - Identification model
ucelofka-data/src/identification/v1.rs - Identity models
ucelofka-data/src/identity/v1.rs - Entry model
ucelofka-data/src/entry/v1.rs - Invoice models
ucelofka-data/src/invoice/v2.rs - Template model
ucelofka-data/src/template/v1.rs
User interfaces
- TUI navigation
ucelofka/src/tui/app.rs - TUI domain screens
ucelofka/src/tui - TUI list widget
ucelofka/src/tui/list.rs - TUI table widget
ucelofka/src/tui/table.rs - Web domain handlers
ucelofka/src/web
Other components
- CLI user
Connections 23
- CLI user → CLI dispatcher: runs commands
- CLI dispatcher → Domain actions: dispatches CLI
ucelofka/src/main.rs - CLI dispatcher → Web entry point: starts web
ucelofka/src/main.rs - Domain actions → Invoice actions: includes
ucelofka/src/actions.rs - Domain actions → Project actions: includes
ucelofka/src/actions.rs - Domain actions → Template actions: includes
ucelofka/src/actions.rs - Versioned data models → Account model: exports model
ucelofka-data/src/lib.rs - Versioned data models → Customer models: exports model
ucelofka-data/src/lib.rs - Versioned data models → Identification model: exports model
ucelofka-data/src/lib.rs - Versioned data models → Identity models: exports model
ucelofka-data/src/lib.rs - Versioned data models → Entry model: exports model
ucelofka-data/src/lib.rs - Versioned data models → Invoice models: exports model
ucelofka-data/src/lib.rs - Versioned data models → Template model: exports model
ucelofka-data/src/lib.rs - Invoice models → Customer models: uses types
ucelofka-data/src/invoice/v2.rs - Invoice models → Identity models: uses types
ucelofka-data/src/invoice/v2.rs - Invoice models → Account model: uses types
ucelofka-data/src/invoice/v2.rs - Invoice models → Entry model: uses types
ucelofka-data/src/invoice/v2.rs - Invoice models → Identification model: uses type
ucelofka-data/src/invoice/v2.rs - TUI navigation → TUI domain screens: renders screens
ucelofka/src/tui/app.rs - TUI domain screens → TUI list widget: renders list
ucelofka/src/tui/identity.rs - TUI domain screens → TUI table widget: renders table
ucelofka/src/tui/identity.rs - TUI domain screens → Domain actions: uses actions
ucelofka/src/tui/identity.rs - Web domain handlers → Domain actions: uses actions
ucelofka/src/web/customer.rs