pub fn query(query: &str) -> Result<Vec<Task>, Error>
This will give you all tasks which match the given query in the taskwarrior query syntax. This is not sanitized. Never get the query string from an untrusted user.