https://github.com/brianhicks/task-add-json
https://github.com/brianhicks/task-add-json
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brianhicks/task-add-json
- Owner: BrianHicks
- Created: 2025-02-20T22:45:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T15:21:37.000Z (over 1 year ago)
- Last Synced: 2025-03-04T16:31:19.168Z (over 1 year ago)
- Language: Rust
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# task-add-json
I have a bunch of scripts that work with
[Taskwarrior](https://taskwarrior.org/). Because of that, I want to be able to
parse them the way `task add` does, but I want to modify the tasks before adding
them to the database. This repo parses arguments the same way that `task add`
does, but it returns JSON appropriate for feeding into `task import` after
further processing.
For example:
```sh
$ task add buy milk +groceries pri:M
{
"description": "buy milk",
"priority": "M",
"tags": [
"groceries"
]
}
```
It doesn't parse dates (since `task import` can do that just fine) but it'll
create the correct structure for you to whatever processing you need.