Documentation
createTask :: Text -> IO Task Source #
This will create a Task. I runs in IO to create a UUID and get the current time. This will not save the Task to taskwarrior.
If you want to create a task with certain fields and save it you could do that like this:
newTask <- createTask "Buy Milk"
saveTasks [newTask { tags = ["groceries"] }]
getUUIDs :: [Text] -> IO [UUID] Source #
Gives all uuids matching the given filter (e.g. ["description:Milk", "+PENDING"]). This calls the task binary.
onModifyPure :: (Task -> Task -> Task) -> IO () Source #
Takes a function f originalTask modifiedTask = taskToSave.
The resulting IO action can be run as the `main :: IO ()` of a taskwarrior on-modify hook.