Skip to content

Chust3r/task-tracker-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task CLI

A simple task tracker built with Node.js and TypeScript, providing a command-line interface to manage tasks. This solution is part of the Roadmap Backend Projects - Task Tracker challenge.

Features

  • Add tasks: Create new tasks with descriptions.
  • Update tasks: Modify existing tasks' descriptions.
  • Delete tasks: Remove tasks by their ID.
  • Mark tasks: Update tasks' status to "in-progress", "done", or "todo".
  • List tasks: View all tasks or filter by their status.

Prerequisites

  • Node.js (version 16 or higher)
  • npm (comes bundled with Node.js)

Installation

Clone the repository

Clone the repository to your local machine:

git clone https://github.com/your-username/npx tsx src/index.ts.git
cd npx tsx src/index.ts

Install dependencies

Install the required dependencies by running the following command:

npm install

Usage

You can use the npx tsx src/index.ts command to manage your tasks. Here are some of the available commands:

Add a task

To add a new task with a description:

npx tsx src/index.ts add "Task description"

Update a task

To update an existing task's description:

npx tsx src/index.ts update 1 "New task description"

Delete a task

To delete a task by its ID:

npx tsx src/index.ts delete 1

Mark a task

To mark a task as "in-progress", "done", or "todo":

npx tsx src/index.ts mark-in-progress 1
npx tsx src/index.ts mark-done 1
npx tsx src/index.ts mark-todo 1

List tasks

To list all tasks or filter by their status:

npx tsx src/index.ts list
npx tsx src/index.ts list todo
npx tsx src/index.ts list in-progress
npx tsx src/index.ts list done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published