Skip to content

Commit

Permalink
Model View Architecture?
Browse files Browse the repository at this point in the history
added DiaryController class for user interface.
Concerns separated.
tests.
  • Loading branch information
madhaven committed Sep 18, 2022
1 parent a0b302c commit fb00905
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 290 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Diary
The diary app is intended to be called from a command prompt and can be used to quickly log entries of your day and search for past entries.
The read option enables you to replay entries the way you typed it into the console.
The read option enables you to replay entries the way you typed it into the console.
The setup is quite clumsy for a standalone script.

After having added the .py extension and the program directory to path, the Diary interface could be called with one of three ways to start it up.

Expand Down Expand Up @@ -31,3 +32,7 @@ After having added the .py extension and the program directory to path, the Diar
>diary [searchall | findall] [ string [ string2 [...]]]
>```
>helps you search for strings in your file. The ```searchall / findall``` also works in a similar fashion except that it fetches those entries that simultaneously have all the search strings in it.
The `DiaryController` class is responsible for handling user interaction to access the `Diary`.
The `Diary` class contains a list of `Entry` instances that contain a record of the user's input.
Loading

0 comments on commit fb00905

Please sign in to comment.