Air Rec is a desktop app for managing flight records, optimized for use via a Command Line Interface (CLI). User will not have to remember flight details and it can be found easily with commands.
addshow allshow upcoming [to be implemented in v3.0]deletehelpsearchbyePrerequisites: JDK 11, update Intellij to the most recent version.
Hi I’m AIR REC, I can help you save all the flight details!
How can I assist you today?”
Type the command in the command box and press Enter to execute it. e.g. typing list and pressing Enter will display all task that you have saved so far in the window. Some example commands you can try:
add /from Australia /to Singapore /date 2021-10-31 1400 /price 500: Add a trip departing from Australia to Singapore on 31 Oct 2021 2pm with a price of $500
show all: List out all flight details
show upcoming: List out the flight that is the first index of the list
delete 3 : Deletes the 3rd flight shown in the current list.
exit : Exit the application.
Duke has auto-save and auto-load function. The list is being save as a text file named “Duke.txt” which is auto created and overwritten in the root folder.
Refer to the Features below for details of each command.
Notes about the command format:
1. Date and time format are as shown: yyyy-mm-dd HHMM
Adds a new flight trip to the list. NOTE: For version 1.1 Air Rec will be reading the descriptions after add as a full string. We will work on to process these strings into data on version 1.2 onwards.
Format: [add] [/from] [depart details] [/to] [destination] [/date] [date & time of departure] [/price] [price of trip]
Example:
add /from Australia /to Singapore /date 2021-10-31 1400 /price 500
show allList out all flight trip
Format: [show] [all]
Example:
show all
show upcomingList out the first index of the flight in the list
Format: [show] [upcoming]
Example:
show upcoming
deleteDeletes a trip from the list
Format: [delete] [index]
Example:
delete 3
helpGet Support
Format: [help]
searchSearch a trip from the list
Format: [search] [keyword]
Example:
search Australia
exitExits the application.
Format: [bye]
Example:
bye
Q: How do I save multiple trip?
A: You only can save one trip at a time.
| Action | Format, Examples |
|---|---|
| add | Format: [add] [/departing] [depart details] [/destination] [destination] [/date] [date & time of departure] [/price] [price of trip] Example: add /departing Australia /destination Singapore /date 10 Jan 2021 12:00 /price 500 |
| show all | Format: [show] [all] Example: show all |
| show upcoming | Format: [show] [upcoming] Example: show upcoming [to be implemented in v3.0] |
| search | Format: [search] [keyword] Example: search Australia |
| help | Format: [help] |
| delete | Format: [delete] [index] Example: delete 3 |
| bye | Format: [bye] Example: bye |