jubnzv / go-taskwarrior

Golang library to interact with taskwarrior database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-taskwarrior

Build Status codecov GoDoc

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.

About

Golang library to interact with taskwarrior database

License:MIT License


Languages

Language:Go 100.0%