http://tutorials.jumpstartlab.com/projects/event_reporter.html
As a user launching start the program I'm provided a command prompt where I can issue one of several commands, described below. After each command completes, the prompt returns, waiting for another instruction.
The program has a concept called the "queue". The queue holds the stored results from a previous search. As a user, I issue a search command to find records, then later issue another command to do something with those results. The queue is not cleared unless the user runs queue clear
or a new find
.
Erase any loaded data and parse the specified file. If no filename is given, default to event_attendees.csv
.
Output a listing of the available individual commands
Output a description of how to use the specific command. For example:
help queue clear
help find
Output how many records are in the current queue
Empty the queue
Print out a tab-delimited data table with a header row following this format:
LAST NAME FIRST NAME EMAIL ZIPCODE CITY STATE ADDRESS
Print the data table sorted by the specified attribute
like zipcode
.
Export the current queue to the specified filename as a CSV
Load the queue with all records matching the criteria for the given attribute. Example usages:
find zipcode 20011
find last_name Johnson
find state VA