Skip to content

Latest commit

 

History

History
80 lines (60 loc) · 1.56 KB

File metadata and controls

80 lines (60 loc) · 1.56 KB

Task Management System

Usage Instructions

Prerequisites

  • Python 3.11 or higher
  • No additional external dependencies required

Installation

  1. Clone the repository:
git clone <repository-url>
cd task-manager
  1. No additional installation steps required as the project uses Python standard library.

Run the CLI

The CLI provides various commands to manage tasks:

  1. Create a new task:
python cli.py create "Task Title" --description "Task description" --priority 2 --due "2024-01-31" --tags "tag1,tag2"
  1. List tasks:
# List all tasks
python cli.py list

# List by status (todo, in_progress, review, done)
python cli.py list --status todo

# List by priority (1=LOW, 2=MEDIUM, 3=HIGH, 4=URGENT)
python cli.py list --priority 3

# List overdue tasks
python cli.py list --overdue
  1. Update tasks:
# Update task status
python cli.py update-status <task_id> <new_status>

# Update task priority
python cli.py update-priority <task_id> <new_priority>

# Update due date
python cli.py update-due-date <task_id> "2024-02-15"
  1. Manage tags:
# Add a tag
python cli.py add-tag <task_id> "new-tag"

# Remove a tag
python cli.py remove-tag <task_id> "tag-to-remove"
  1. View task details and statistics:
# Show task details
python cli.py show <task_id>

# Show task statistics
python cli.py stats

Run the Tests

Run the unit tests using Python's unittest framework:

# Run tests with basic output
python -m unittest discover tests

# Run tests with verbose output
python -m unittest discover -v tests