How yancyasd/task-tracker works
Project type and purpose
• This is a CLI-based task tracker written in TypeScript. It provides commands to add, update, delete, mark, and list tasks. It stores tasks in a JSON file via a simple file-based “database” layer.
File structure
• src/main.ts: entry point that parses CLI arguments and dispatches commands.
• src/service/taskService.ts: business logic for handling tasks (add, update, delete, mark, list).
• src/DB/JsonDb.ts: persistence layer reading/writing tasks to a JSON file.
• src/types/task.ts: Task model definition (id, description, status).
• package.json, tsconfig.json, eslint.config.js, .prettierrc: build/configuration.
• No frontend, no external web services—pure CLI tool.
README for additional insights
• The README shows the npm scripts that launch the CLI.
• Commands map directly to calls in main.ts → taskService methods.
• There is no external database or third-party API.
Elements
• Clear component labels (e.g., “CLI Parser”, “TaskService”, “JsonDb”, “tasks.json”).