By: TeamXpire
Since: Sep 2019
Licence: MIT
- 1. Introduction
- 2. Quick Start
- 3. Features
- 3.1. Viewing help :
help
- 3.2. Adding an item:
add
- 3.3. Listing all items :
view
- 3.4. Listing expiring items :
check
- 3.5. Sorting all items :
sort
- 3.6. Searching item by name:
search
- 3.7. Deleting an item :
delete
- 3.8. Tagging an item :
tag
- 3.9. Clearing all entries :
clear
- 3.10. Exiting the program :
exit
- 3.11. Saving the data
- 3.1. Viewing help :
- 4. FAQ
- 5. Command Summary
Xpire is for those who prefer to use a desktop app for tracking expiry dates of items. More importantly, Xpire is optimised for those who prefer to work with a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you have trouble tracking your items' expiry dates, Xpire can help you manage and notify you of items that are soon-expiring. Interested? Jump to the Section 2, “Quick Start” to get started!
-
Ensure you have Java
11
or above installed in your Computer. -
Download the latest
xpire.jar
here. -
Copy the file to the folder you want to use as the home folder for Xpire.
-
Double-click the file to start the app. The GUI should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
e.g. typinghelp
and pressing Enter will open the help window. -
Some example commands you can try:
-
view
: views all items -
check|20
: views items that is going to expire within the given number of days -
add|Banana|25/9/2019
: adds an item namedBanana
with expiry date25/9/2019
to list. -
delete|3
: deletes the 3rd item shown in the current list -
exit
: exits the app
-
-
Refer to Section 3, “Features” for details of each command.
Command Format
-
Words that are enclosed with
<
and>
are the parameters to be supplied by the user e.g. inadd|<item name>|<expiry date>
,<item name>
and<expiry date>
are parameters which can be used asadd|banana|25/09/2019
. -
Items in square brackets are optional e.g
add|<item name>|<expiry date>|[#tag]
can be used asadd|strawberry|10/10/2019|#Fruit
. -
Items with
…
after them can be used multiple times including zero times e.g.tag|<index>|#tag…
can be used astag|1|#Fruit #Frozen #Cold
,tag|1
, ortag|1|#Fruit
etc.
Adds item to list
Format: add|<item name>|<expiry date>
Examples:
-
add|durian|30/9/2019
Shows expiring items in the list.
Format: check|<days>
-
Lists items expiring within the specified number of
<days>
-
Number of days must be a positive integer 1,2,3,..
Examples:
-
check|20
Lists items expiring in the next 20 days.
Sorts all items in the list by either name or date.
Format: sort|<method>
-
Sorting by both name and date is done in ascending order.
-
For example, Apple will sort ahead of Banana, while 1/1/2000 will sort ahead of 1/1/2001.
Examples:
-
sort|name
-
sort|date
Search items whose names contain any of the given keywords.
Format: search|<keyword>|[other keywords…]
-
The search is case insensitive. e.g
ham
will matchHam
-
The order of the keywords does not matter. e.g.
Turkey Ham|Apple
will matchApple|Turkey Ham
-
Only the name is searched.
-
Partial words can also be matched e.g.
Papa
will matchPapayas
-
Items matching at least one keyword will be returned (i.e.
OR
search). e.g.Apple|Pear
will returnGranny Smith Apple
,Japanese Pear
Examples:
-
search|kebab
ReturnsChicken Kebab
andkebab
-
search|milk|tea|pearls
Returns any items containing the termsmilk
,tea
, orpearls
Deletes the specified item from the list.
Format: delete|<index>
-
Deletes the item at the specified
<index>
. -
The index refers to the index number shown in the list.
-
The index must be a positive integer 1, 2, 3, …
Examples:
-
list
delete|2
Deletes the 2nd item in the list. -
sort|name
delete|3
Deletes the 3rd item in the sorted list. -
search|potato
delete|1
Deletes the 1st item in the results of thesearch
command.
Tags an item from the list according to user input or clears item of tags.
Format: tag|<index>|#tag…
-
Tags the item at the specified
<index>
. -
The index refers to the index number shown in the list.
-
The index must be a positive integer 1, 2, 3, …
-
If there are no valid tags (e.g.
tag|<index>
), item at the specified<index>
will be cleared of its tags.
Examples:
-
list
tag|2|#Nestle #Caffeine
Tags the 2nd item in the list with#Nestle
and#Caffeine
. -
search|potato
tag|1
Deletes all tags of the 1st item in the results of thesearch
command.
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous Xpire folder.
-
Add
add|<item name>|<expiry date>
e.g.add|durian|30/9/2019
-
Clear :
clear
-
Delete :
delete|<index>
e.g.delete|3
-
List :
list
-
Sort :
sort|<method>
+ e.g.sort|date
-
Search :
search|<keyword>|[other keywords…]
e.g.search|milk|tea|pearls
-
Tag :
tag|<index>|#tag…
-
View :
view
-
Check :
check|<days>
e.g.check|20
-
Help :
help