Skip to content

ddiogoo/google-calendar-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Calendar CLI

Command line interface integrated with Google Cloud Platform.

Project Description

Command line interface implemented in Golang integrated with the calendar API provided by Google Cloud Platform, which allows you to list events of the week and events of the day.

Project Reference

Folder structure

  ./
Folder Description
app Application entrypoint.
  internal/
Folder Description
client Encapsulation of the calendar API configuration logic through the abstraction provided by the Go library.
cmd Commands implemented to run in the terminal

API Credentials

You need to obtain a JSON file with the API credentials and insert it into a folder in the project root, the folder name must be key and the file name must be credentials.json.

CLI Reference

  • In the terminal, at the root of the project, run the following command: go run main.go <command>.
  • Add a calendar with the command go run main.go config -c <calendar id>.
  • To get the week's events, type the command go run main.go events -c <calendar name> -i <interval> where -c represents the name of the calendar referring to the calendar Id added and -i represents the interval that will be fetched, the possible values are week and today.

Library Reference

The following libraries were used:

About

Command line interface integrated with Google Cloud Platform

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages