A simple command-line todo list application written in Python that helps you manage tasks across different states: todo, in progress, and done.
git clone <repository-url>
cd tasks-cli
chmod +x tc.py
sudo ln -sf "$(pwd)/tc.py" /usr/local/bin/tc
After installation, you can run the program from anywhere using the tc
command.
The command syntax is: tc <command> [options]
tc list todo # List all todo tasks
tc list in_progress # List all in-progress tasks
tc list done # List all completed tasks
tc add 'task description' # Add a new task to todo list
tc update todo 1 'updated task' # Update task #1 in todo list
tc update in_progress 1 'new text' # Update task #1 in in-progress list
tc update done 1 'completed task' # Update task #1 in done list
tc delete 1 # Delete task #1 from todo list
tc delete todo 1 # Delete task #1 from todo list
tc delete in_progress 1 # Delete task #1 from in-progress list
tc delete done 1 # Delete task #1 from done list
tc mark-inp 1 # Move task #1 from todo to in-progress
tc mark-done 1 # Move task #1 from todo to done
tc finish 1 # Move task #1 from in-progress to done
tc help # Display help information
The application stores all tasks in a file called liststorage.json
in the same directory as the script. You can backup this file to preserve your tasks.
The application includes error handling for: