Documentation
¶
Index ¶
- Variables
- func GetClient(config *oauth2.Config) *http.Client
- func GetService() (*calendar.Service, error)
- func GetTokenFromWeb(config *oauth2.Config) *oauth2.Token
- func Print(e *calendar.Events, name string)
- func SaveToken(token *oauth2.Token)
- func TokenFromFile(config *oauth2.Config) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: `routine`, Summary: `a command that prints out current day routine schedule`, Version: `v0.4.1`, Copyright: `Copyright 2022 Yongle Xu`, License: `Apache-2.0`, Site: `yonglexu.dev`, Source: `git@github.com:rwx-yxu/routine.git`, Issues: `github.com/rwx-yxu/routine/issues`, Commands: []*Z.Cmd{ todayCmd, help.Cmd, conf.Cmd, vars.Cmd, emb.Cmd, printCmd, }, Description: ` {{cmd .Name}} is a tool that prints out google calendar events for the day along with any reminders. The output will be to a text file that is fed into a thermal printer. Google API key will be required to be set using routine conf edit. `, }
Functions ¶
func GetService ¶
func GetService() (*calendar.Service, error)
func GetTokenFromWeb ¶
Request a token from the web, then returns the retrieved token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.