Skip to content

AgentFoundryTest/agentfoundry-repo-clone-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-Line Task Manager 📋

A simple, lightweight command-line task manager written in Python. Perfect for managing your to-do list directly from the terminal!

Features

  • ✅ Add tasks with priority levels (low, medium, high)
  • 📋 List all tasks with status indicators
  • ✔️ Mark tasks as complete
  • 🗑️ Delete tasks
  • 💾 Persistent storage using JSON
  • 🎨 Color-coded priority indicators
  • 📅 Automatic timestamp tracking

Requirements

  • Python 3.6 or higher
  • No external dependencies required!

Installation

  1. Clone this repository:
git clone https://github.com/AgentFoundryTest/agentfoundry-repo-clone-test.git
cd agentfoundry-repo-clone-test
  1. Make the script executable (optional):
chmod +x task_manager.py

Usage

Add a Task

Add a new task with optional priority (defaults to "medium"):

python task_manager.py add "Buy groceries"
python task_manager.py add "Finish project report" high
python task_manager.py add "Call mom" low

Priority levels: low, medium, high

List Tasks

Display all tasks (both active and completed):

python task_manager.py list

Output example:

📋 Active Tasks:
------------------------------------------------------------
🔴 #1: Finish project report
   Priority: high | Created: 2025-10-27
🟡 #2: Buy groceries
   Priority: medium | Created: 2025-10-27

✅ Completed Tasks:
------------------------------------------------------------
   #3: Call mom
   Completed: 2025-10-27

Complete a Task

Mark a task as complete by its ID:

python task_manager.py complete 1

Delete a Task

Remove a task permanently by its ID:

python task_manager.py delete 2

Help

Display usage information:

python task_manager.py help

Data Storage

Tasks are stored in a tasks.json file in the same directory as the script. This file is created automatically when you add your first task.

Examples

Here's a typical workflow:

# Add some tasks
python task_manager.py add "Write documentation" high
python task_manager.py add "Fix bug #42" medium
python task_manager.py add "Update dependencies" low

# View all tasks
python task_manager.py list

# Complete a task
python task_manager.py complete 2

# Delete a task
python task_manager.py delete 3

# View updated list
python task_manager.py list

Project Structure

.
├── task_manager.py       # Main application
├── tasks.json           # Data storage (created automatically)
├── test_task_manager.py # Unit tests
└── README.md            # This file

Testing

Run the test suite:

python test_task_manager.py

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

Contributing

Feel free to submit issues and enhancement requests!

Author

Created as a demonstration project for AgentFoundry.

About

Testing clone repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages