Skip to content

zerd1y/task_tracker_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task CLI Application

Sample solution for the task-tracker challenge from roadmap.sh.

This is a simple command-line interface (CLI) application for managing tasks. You can add, update, delete, mark, and list tasks directly from the terminal.

Features

  • Add a Task: Add a new task with a description
  • Update a Task: Update the description of an existing task
  • Delete a Task: Remove a task by its ID
  • Mark a Task: Mark a task as "in progress" or "done"
  • List Tasks: List all tasks or filter them by status (e.g., todo, in progress, done)

Installation

  1. Clone the repository:

    git clone git@github.com:zerd1y/task_tracker_cli.git
    cd task_tracker_cli
  2. Compile the source code:

    javac TaskCLIApp.java Task.java TaskManager.java Status.java
  3. Run the application:

    java TaskCLIApp <command> [arguments]

Usage

# Adding a new task
java TaskCLIApp add "Buy groceries"
# Output: Task added successfully (ID: 1)

# Updating a task
java TaskCLIApp update 1 "Buy groceries and cook dinner"
# Output: Task updated successfully (ID: 1)

# Deleting a task
java TaskCLIApp delete 1
# Output: Task deleted successfully (ID: 1)

# Marking a task as in progress
java TaskCLIApp mark-in-progress 1
# Output: Task marked as in progress (ID: 1)

# Marking a task as done
java TaskCLIApp mark-done 1
# Output: Task marked as done (ID: 1)

# Listing all tasks
java TaskCLIApp list
# Output: List of all tasks

# Listing tasks by status
java TaskCLIApp list todo
java TaskCLIApp list in-progress
java TaskCLIApp list done

About

基于命令行的 Java 任务管理器

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages