User Guide
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.
- Quick start
- Features
- Adding a flight:
add - Showing all flights:
show all - Showing upcoming flight:
show upcoming - Deleting a flight:
delete - Edit a flight detail:
edit - Help:
help - Sort flight records by either price or dateTime only:
sort priceorsort datetime - Search a flight:
search - Exiting the program :
bye
- Adding a flight:
- FAQ
- Command summary
Quick Start
Prerequisites: JDK 11, update Intellij to the most recent version.
- Ensure you have Java 11 or above installed in your computer.
- Download the latest airrec.jar from here.
- Copy the file to the folder you want to use as the home folder for your Air Record.
- Double-click the file to start the app. The GUI will greet you with:
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.
-
edit 2 /from new location: Edit old from with new from change the key word ‘from’ with other key word to edit the flight detail.
-
sort price : Sort all flight records by price in ascending order.
-
sort datetime : Sort all flight records by datetime format, the earliest flight is at the top.
-
search singapore : Search for the keyword “singapore” in the whole flight record.
-
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.
Features
Notes about the command format:
1. Date and time format are as shown: yyyy-mm-dd HHMM
Adding a flight: add
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
Showing all flights: show all
List out all flight trip
Format: [show] [all]
Example:
show all
Showing upcoming flight: show upcoming
List out the first index of the flight in the list
Format: [show] [upcoming]
Example:
show upcoming
Deleting a flight: delete
Deletes a trip from the list
Format: [delete] [index]
Example:
delete 3
Edit a flight: edit
Edit a trip flight detail from the list
Format: [edit] [index] [/command] [new data]
Example:
edit 2 /date 2021-12-25
Help: help
Get Support
Format: [help]
Sort flight records by price: sort price
Sort all flight records by price in ascending order.
Format: [sort price]
Example:
sort price
Sort flight records by datetime format: sort datetime
Sort all flight records by datetime format, the earliest flight is at the top.
Format: [sort datetime]
Example:
sort datetime
Search a flight: search
Search a trip from the list
Format: [search] [keyword]
Example:
search Australia
Exiting the program : exit
Exits the application.
Format: [bye]
Example:
bye
FAQ
Q: How do I save multiple trip?
A: You only can save one trip at a time.
Command summary
| Action | Format, Examples |
|---|---|
| add | Format: [add] [/from] [depart details] [/to] [destination] [/date] [date & time of departure] [/price] [price of trip] Example: add /from Australia /to Singapore /date 10 Jan 2021 1200 /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 |
| edit | Format: [edit] [index] [/from] [from details] Example: edit 2 /from Japan |
| help | Format: [help] |
| sort price | Format: [sort price] |
| sort datetime | Format: [sort datetime] |
| delete | Format: [delete] [index] Example: delete 3 |
| bye | Format: [bye] Example: bye |