Command
or EditModeCommand
Command
, including DeleteCommand
, ViewCommand
, HelpCommand
,
InvalidCommand
, ExitCommand
.EditModeCommand
, including Add
, Delete
, Invalid
.Command
execution and EditModeCommand
execution.RecipEditor is a hybrid CLI-GUI application that allows you to manage your recipes with the speed and convenience of command-line based tools. It helps users to store recipes, edit saved recipes, delete unused or outdated recipes, find recipes with relevant keywords, view and list recipes.
The following sections summarise what I have contributed to the project.
What it does:
Command is a wrapper for all command user specified. EditModeCommand is a wrapper for all modes of edit command.
Justification:
Normal commands are similar as they shared many attributes and methods. They are constructed and called similarly. Creating wrapper for all the commands makes adding new commands easier and standardized without affecting other components depending on the wrapper. So as for various edit commands.
Highlights:
Command
and EditModeCommand
feature execute()
method, which returns CommandResult
. This allows
integrating execution of all commands in a single shared code block.Command
and EditModeCommand
contains information on the usage of each command. This makes documentation
of commands in Recipeditor systematic.What it does:
It parses command and flags in command. After parsing, relevant commands pertaining command information will be generated. It reports respective issues if command input does not follow existing rules or contains unrecognised flags or arguments.
Justification:
Due to similarity and differences in many command types, it is important to interpret commands as clear as possible so the software will run as expected. This also helps identify issues in commands more accurately for users to rectify faulty command input.
Highlights:
What it does:
HelpCommand
gives usage of all available commands. ListCommand
list all recipes available in Recipeditor.
AddCommand
adds new recipe to the Recipeditor.
Justification:
These are essential features for users to get to know and perform basic operations in Recipeditor. With these features, users can add and view all the recipes they store, and access rules for using the commands in software.
Highlights:
ListCommand
shows all recipe titles with index in front.HelpCommand
provides information on all available commands and their syntax. It relies on Command
wrapper
for syntax information.What it does:
It helps user to view or delete recipes from the list of all stored recipe, and keep the changes to the local machine.
Enhancements:
Pull requests: #168
v1.0
v2.0