A command line tool for using Google Tasks basic actions.
- Please get it from the Releases
if you have a Go env
- Use Makefile or self build
Author's env
go version go1.15.3 darwin/amd64
credentials.json
, token.json
and config.yaml
are required
- make and download
credentials.json
from Google Tasks API Go quickstart(Details on how to do exactly that can be found there.) - make dir
~/.config/gtodo
and movecredentials.json
to~/.config/gtodo/
$ gtodo login
or other command downloadtoken.json
automatically to~/.config/gtodo
- make
config.yaml
into~/.config/gtodo/
# config.yaml
listid: foobarbuz # <- write your default TODO Task List ID.
you can check the TODO List ID with the $ gtodo lists show
$ gtodo lists show
TODO Lists:
ListsName (your list id)
$ gtodo lists create -t new_todo_list
Created TODO List!! new_todo_list
$ gtodo lists show
TODO Lists:
Main (your list id1)
new_todo_list (your list id2)
$ gtodo tasks show
[1] task1
Note:
Status: needsAction
Due: Date not set
[2] task2
Note: sample description
Status: needsAction
Due: Date not set
[3] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
$ gtodo tasks add
InputTitle:: task4
InputNote(press enter skip)::
InputDueDate(ex. 2021-04-01)(press enter skip)::
task4 created
$ gtodo tasks show
[1] task4
Note:
Status: needsAction
Due: Date not set
[2] task1
Note:
Status: needsAction
Due: Date not set
[3] task2
Note: sample description
Status: needsAction
Due: Date not set
[4] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
$ gtodo tasks rm
[1] task4
Note:
Status: needsAction
Due: Date not set
[2] task1
Note:
Status: needsAction
Due: Date not set
[3] task2
Note: sample description
Status: needsAction
Due: Date not set
[4] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
✔ Input Task Num:: 1
Deleted: task4
$ gtodo tasks show
[1] task1
Note:
Status: needsAction
Due: Date not set
[2] task2
Note: sample description
Status: needsAction
Due: Date not set
[3] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
$ gtodo tasks done
[1] task4
Note:
Status: needsAction
[2] task1
Note:
Status: needsAction
Due: Date not set
[3] task2
Note: sample description
Status: needsAction
Due: Date not set
[4] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
Input Task Num:: 1
Mark up as complete: task4
$ gtodo tasks show
[1] task1
Note:
Status: needsAction
Due: Date not set
[2] task2
Note: sample description
Status: needsAction
Due: Date not set
[3] task3
Note:
Status: needsAction
Due: 2021/4/20 00:00:00
$ gtodo login
- Inspired by BRO3886/gtasks and mattn/todo
- I was able to create this app thanks to a great set of libraries.