This simple command-line application is designed to process calendar events from .ics
files within a specified directory. Here's what it does:
- Find
.ics
Files: It searches for any.ics
(iCalendar) files in the given folder. - Parse Events: It parses the found
.ics
files to extract event details. - Format Event Data: For each event, it formats the start and end date, the summary (title), and the description (notes) into a single line.
- Filter Past Events: It filters out any events that have already occurred, only displaying future events.
To use the application, provide the path to the directory containing .ics
files as an argument:
mcgregor <path-to-directory>
The output will list the upcoming events in the following format:
start-date,weekday,summary,description,end-date
Where:
start-date
andend-date
are inYYYY-MM-DD
format.weekday
is the day of the week when the event starts.summary
is the title of the event.description
is a brief note about the event, truncated to 100 characters if necessary.
This project is open-source and available under the MIT License.