Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!