User Guide
Introduction
JustBook: An easy-to-use Appointment CLI App
Quick Start
- Ensure that you have Java 11 or above installed.
- Download the latest version of
JustBook Appinto your local folder from here. - Open up a command or terminal window, e.g. Windows Terminal (recommended), from inside the folder or
- cd to your local folder in your terminal
Features
Program designed for someone who are avid keyboarders, for Single User use.
Load application: java -jar justbook.jar
Load application and all records from previous session (if any) inside the JustBook application.
Format: java -jar justbook.jar
Example of usage
java -jar justbook.jar
By calling this command, the JustBook application will load.
Adding a booking: add
Adds a new item to the list of booking items.
Format: add BOOKING_DESC /s DATE TIME /e DATE TIME
- The
BOOKING_DESCcan be in a natural language format. - The
DATE TIMEuses format yyyy-M-d HH:mm. - Current version allows within-same-day booking only.
- Will first check whether booking entry date is allowed or denied using the BLOCKLIST database.
- User expected to input reasonable non-clashing same-day timing ranges.
- Add bookings that span days (coming feature).
- Will check whether there are clashing same-day timing ranges (coming feature).
Example of usage
add meet@Sports Hall One lvl 3 /s 2021-6-7 09:00 /e 2021-6-7 10:30
todo attend IT Exhibit Changi Expo Halls /s 2021-06-07 11:00 /e 2021-06-07 13:30
Blocking date-range setting: block <DATE> <DATE>
Blocks users from creating appointments during a specific date range.
Format: block DATE DATE
DATEuses format yyyy-M-d.- Users may release blocked dates at their discretion (e.g. via
unblock <date> <date>).
Example of usage
block 2021-11-5 2021-11-30
Deleting all bookings: del --all>
Erase all records inside the online appointment database.
Format: del --all
- Alternate versions:
del aordel all.
Example of usage
del a
Deleting a single booking: del <DATE> /o <OPTION_NUM>
Erase all records inside the online appointment database.
Format: del DATE /o OPTION_NUM
Example of usage
This will delete the first appointment that starts on 10th Oct 2020.
del 2020-10-10 /o 1
Deleting a single booking: help
Erase all records inside the online appointment database.
Format: help
Example of usage
By calling this command, the cheatsheet of commands will appear, allowing
help
Delete appointments within date-range: del /b <DATE> <DATE>
Delete all records within specified date range.
Format: del /b STARTDATE ENDDATE
STARTDATEandENDDATEuses format yyyy-mm-dd.
Example of usage
del /b 2021-11-5 2021-11-30
Save all appointments details up to this point: save
Save all records up to this point.
Format: save
Example of usage
save
Editing a booking: edit
Edits the booking description of the chosen item.
Format: edit BOOKING_DESC /s DATE /o OPTION NO.
- The
BOOKING_DESCcan be in a natural language format. - The
DATEuses format yyyy-M-d. - Current version allows editing the booking text-description only.
- Edit the date and time slot, with possible scheduling conflict checking for user (coming feature).
OPTION NO.= the serial no. of an item under a booking list display.- Before using
edit, user is expected to open up first either- a specific date entries listing (e.g. via
show <date>orshow weekends) or - the entire database listing (e.g. via
show <--all>).
- a specific date entries listing (e.g. via
Example of usage
edit meet@Sports Hall One lvl 3 /s 2021-6-7 /o 3
edit attend Exhibit A /s 2021-06-07 /o 1
Exiting Program: exit
Exits the JustBook App Program.
Format: exit
- An alternate version:
bye.
Example of usage
exit or bye
Showing all bookings: show <--all>
Displays all database records, headed by distinct dates header, in chronological order.
Format: show -all
- Alternate versions:
show aorshow all.
Example of usage
show a
Show appointments within date-range: show /b <DATE> <DATE>
Display all records within specified date range.
Format: show /b STARTDATE ENDDATE
STARTDATEandENDDATEuses format yyyy-mm-dd.
Example of usage
show /b 2021-11-5 2021-11-30
Showing a specific date’s list of bookings: show <DATE>
Displays all records chronologically, under a specific date header.
Format: show DATE
DATEuses format yyyy-M-d.
Example of usage
show 2021-11-8
Showing all weekends bookings (current month): show <WEEKENDS>
Displays all weekend records chronologically, under specific weekend headers, for the current month.
Format: show WEEKENDS
WEEKENDScan be in a natural language format.- An alternate version:
show we.
Example of usage
show we
Unlocking date-range setting: unblock <DATE> <DATE>
Releases blocked dates during the range period as specified by users.
Format: unblock DATE DATE
DATEuses format yyyy-M-d.
Example of usage
unblock 2021-11-5 2021-11-30
Undeleting a previous online database delete action: undel <--all>
Restore all records from offline appointment database up to current moment.
Format: undel --all
- Will restore all records from local archival file “/data/justbook.txt”.
- So long as
savecommand is not executed, it undoes all deletes or modifications up to current moment. - Alternate versions:
undel aorundel all.
Example of usage
undel a
FAQ
Q: How do I show all the bookings done for a range of days?
A: you can refer to the Show all bookings within two date in the Command Summary.
Q: How do I delete all the bookings done for a range of days?
A: you can refer to the Delete all bookings within two date in the Command Summary.
Q: How do I save all the bookings’ modifications (incl. deletes) to offline database backup file on the go?
A: you can simply key in save.
Command Summary
[ ‘Cheat Sheet’ of CLI COMMANDS - case-sensitive ]
- Add booking:
add <BOOKING_DESC> /s <DATE> <TIME> /e <DATE> <TIME> - Block date range:
block <DATE> <DATE> - Delete all bookings:
del --allordel allordel a - Delete all bookings within two dates:
del /b <DATE> <DATE> - Delete a single appointment:
del <DATE> /o <OPTION_NUM> - Edit a booking description:
edit <BOOKING_DESC> /s <DATE> /o <OPTION NO.> - Exit the Program:
exitorbye - Save bookings to file:
save - Show all bookings:
show -allorshow allorshow a - Show a specific date’s list of bookings:
show <DATE> - Show all bookings within two dates:
show /b <DATE> <DATE> - Show all weekends bookings (for current month):
show <weekends>orshow we - Unlock a blocked date range:
unblock <DATE> <DATE> - Undelete a previous online database delete action:
undel a - Requiring help with commands:
help