Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TODO python program with task descriptions and task due dates. Use cases: -- Users are able to add tasks -- Users are able to search

TODO python program with task descriptions and task due dates.

Use cases: -- Users are able to add tasks -- Users are able to search for tasks -- Users are able to delete tasks

Overview: -- Tasks are stored in a text file between runs in order to persist the data -- The first argument is a command - similar structure to git. Additional arguments or options based on the provided command. If there isnt any command provide, print a short usage message that helps the user (e.g. try git, cp, or rm for examples) -- Commands can be "add", "search", or "delete. If a command is unsuccessful for any reason (arguments incorrect, no matches to the search, no deletable items), a non-zero status code should be returned.

Add -- Two required arguments - the description and the due date of the given task. If the arguments are not provided, or the date is not in MM/DD/YYYY, print a reasonable error message and quit. Use the diatomite package. -- Example: ------./todo add This is my first task 7/10/2019

Search -- One required arguments and two optional flags. Search prints the entire description and due date of all matching tasks. If no options are given, search looks to see if the text provided is contained anywhere in the description.

-- Example of a successful search: ------./todo search 'task' ------ > 7/10/19 -> This is my first task ------ > 7/11/19 -> Today I'm going complete all my tasks today -- -d flag and a required numeric argument. The argument is the number of days forward to look for upcoming deadlines. -- Example of a successful search with ------ -d./todo search -d 5 ------ > 7/31/19 -> foo ------ > 8/1/19 -> bar ------ > 8/2/19 -> baz Delete -- Two required arguments - task description and task due date. It searches for and removes all tasks with exactly that description and due date. -- Example: ------ ./todo delete This is my first task 7/10/2019

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions