How qqwst/cli works
Task Manager is a command-line tool for creating, listing, prioritizing, starting, and transitioning background tasks, with file persistence and JSON or human-readable output. The main workflow is CLI command dispatch to TaskManager, which applies task-state changes, maintains a priority queue and lookup structures, and saves or loads task records. The graph includes the indexed collection and the queue/hash-table implementations as internal layers. Source excerpts show these relationships; the data file is selected at runtime, so its path is not a repository source path.
Main entry points: task_manager.h Task manager · queue.h Priority queue · array.h Dynamic array · main.cpp Command CLI
Components 8
Command interface
- Command CLI
src/main.cpp
Task lifecycle
- Task manager
src/task_manager.h - Task model
src/structs/task.h
Internal structures
- Dynamic array
src/structs/array.h - ID index
src/structs/hash_table.h - Priority queue
src/structs/queue.h
Other components
- CLI user
- Task data file
Connections 10
- CLI user → Command CLI: runs commands
src/main.cpp - Command CLI → Task manager: dispatches operations
src/main.cpp - Task manager → Task model: creates and transitions
src/task_manager.h - Task manager → Task data file: loads and saves
src/task_manager.h - Task manager → Dynamic array: stores task records
src/task_manager.h - Task manager → ID index: indexes task IDs
src/task_manager.h - Task manager → Priority queue: queues and selects tasks
src/task_manager.h - ID index → Dynamic array: stores buckets
src/structs/hash_table.h - Priority queue → Dynamic array: stores heap
src/structs/queue.h - Priority queue → Task model: orders tasks
src/structs/queue.h