go-taskwarrior
go-taskwarrior copied to clipboard
Golang library to interact with taskwarrior database
go-taskwarrior
Golang API for taskwarrior database.
Features
- Custom parser for
.taskrc
configuration files - Read access to taskwarrior database
- Adding/modifying existing tasks
Quickstart
Example program to read the current user's tasks:
package main
import (
"github.com/jubnzv/go-taskwarrior"
)
func main() {
tw, _ := taskwarrior.NewTaskWarrior("~/.taskrc")
tw.FetchAllTasks()
tw.PrintTasks()
}
To add new task initialize Task
object with desired values and use:
tw.Add(newTask)
tw.Commit() // Save changes
For more samples see examples
directory and package tests.