https://github.com/jubnzv/go-taskwarrior
Golang library to interact with taskwarrior database
https://github.com/jubnzv/go-taskwarrior
golang golang-library taskwarrior
Last synced: 7 months ago
JSON representation
Golang library to interact with taskwarrior database
- Host: GitHub
- URL: https://github.com/jubnzv/go-taskwarrior
- Owner: jubnzv
- License: mit
- Created: 2018-01-05T13:45:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T09:41:40.000Z (over 2 years ago)
- Last Synced: 2025-04-10T00:08:06.979Z (7 months ago)
- Topics: golang, golang-library, taskwarrior
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 32
- Watchers: 3
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-taskwarrior
[](https://travis-ci.org/jubnzv/go-taskwarrior)
[](https://codecov.io/gh/jubnzv/go-taskwarrior)
[](https://godoc.org/github.com/jubnzv/go-taskwarrior)Golang API for [taskwarrior](https://taskwarrior.org/) 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 mainimport (
"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.