gtodo

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2018 License: MIT Imports: 12 Imported by: 0

README

gtodo

gotod is a simple CLI tool for Google ToDo.

asciicast

Installation

Use go get to install this package:

$ go get github.com/y-yagi/gtodo/cmd/gtodo

Usage

Setup

Need credentials file to use Google API. Please refer to Tasks API and downloads credentials file for Google Tasks API.

The credentials file path can specify via CREDENTIALS env. If not specified CREDENTIALS env, gtodo try to read .credentials.json under the home directory.

Help
$ gtodo help
NAME:
   gtodo - CLI for Google ToDo

USAGE:
   gtodo [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
     add, a       add a new todo
     complete, c  complete a todo
     delete, d    delete a todo
     update, u    update a todo
     tasklist     action for tasklist
     help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

$ gtodo tasklist help
NAME:
   gtodo tasklist - action for tasklist

USAGE:
   gtodo tasklist [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
     add     add a new tasklist
     delete  delete a tasklist

GLOBAL OPTIONS:
   --help, -h  show help

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a todo module.

func NewService

func NewService() (*Service, error)

NewService create a new service.

func (*Service) Tasklists

func (srv *Service) Tasklists() *tasks.TasklistsService

Tasklists return TasklistsService.

func (*Service) Tasks

func (srv *Service) Tasks() *tasks.TasksService

Tasks return TasksService.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL