Taskwarrior v0.2.0 Taskwarrior.Task View Source

A representation of a Taskwarrior task

The struct field names are, to the degree that it's possible, following the names of the fields that are found in JSON exports from Taskwarrior's task export.

Notes about the structs:

  • Some fields are not always set. Examples would be a task having no project, or end not being set due to the task not having the status of completed. In these cases, the value will be set to nil.
  • The Taskwarrior.Task structs do not have all of the fields that Taskwarrior tasks can possibly have. This is primarily due to functionality not being implemented yet.

Link to this section Summary

Functions

Builds a struct from a JSON-decoded Taskwarrior task

Link to this section Functions

Builds a struct from a JSON-decoded Taskwarrior task

The struct created by this function mostly consist of unmodified data from the exported Taskwarrior task.

Note: The dates are parsed as DateTime structs with the timezone being set to UTC, which is how Taskwarrior stores its time values. Currently there is no way to have the values be converted to an alternative timezone.