Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.7 KB

README.md

File metadata and controls

49 lines (41 loc) · 1.7 KB

galendar

This is a golang binary that will retrieve the current and future events from a given calendar.

How to use

You want to see what is coming up in someone's calendar? Provided that you have access to the calendar, just do galendar [email protected]. An example output can look like

Full-day: Weekend Yey 2017-10-08 @ Home
Happening now: Coding @ - 11:00-11:30
Porting Standup @ LON-0-Blue-Blue B (6) [Google Meet, RingCentral, TV] 09:30-10:00 
Not today: Play badminton @ New York 11:30-12:00 

Fuzzy matching

galendar can also infer the calendar from an inpartial input, e.g., when the email is long and you only remember a part of it. galendar someone or galendar one will also return the correct result. Note that in order to use this, you must have the calendar added to your calendar list.

Installation

Run

go get github.com/jutkko/galendar

Prerequisites

You will need to have golang installed on your machine.

galendar calls the Google Calendar API. To be able to read information from the API, you will need to enable the API. For guidance, please see the docs.

After having downloaded the credentials from the docs, please move the file to ~/.credentials/galendar_client_secret.json. Depending on which Google Account you have created the secret with, the corresponsing calendars will be shown when running galendar.

Uninstall

rm -rf $GOPATH/src/github.com/jutkko/galendar
rm $GOPATH/bin/galendar