Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.22 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.22 KB

gcaler

The name is a concatenation of google calendar scheduler.
Currently supported are two subcommands

  • plan create events from a predefined template, i.e. calendar as code
  • list list daily calendar events in terminal

Set up

This guide implies you have successfully installed and configured golang on your machine.

  1. Create an app in google developer console
    • follow Step 1 from the guide
    • copy client_secret.json to the project root

After the first run the google access token will cached in $HOME/.gcaler/access_token.json

  1. Configure your app
# 1: create a config
cp templates/default.toml.dist templates/your_name.toml

# 2: modify "your_name.toml" contents with your data
  1. Run go install

  2. Run gcaler to start using the cli tool

$ gcaler -help

# provide custom templates location; defauls are in the bin working dir
$ gcaler -templates /path/to/templates -credentials /path/to/google/credentials.json {cmd}

License

See the LICENSE file for license rights and limitations (MIT).