Categorygithub.com/caeptncrunch/go-taskwarrior
repositorypackage
0.0.1
Repository: https://github.com/caeptncrunch/go-taskwarrior.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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.