README.md in vgcal-0.3.1 vs README.md in vgcal-0.3.2
- old
+ new
@@ -44,10 +44,11 @@
-d, [--date=DATE] # Show relative date. ex.-1, +10
-c, [--current-week], [--no-current-week] # Show current week tasks
-n, [--next-week], [--no-next-week] # Show next week tasks
-s, [--start-date=N] # Start date. ex.20210701
-e, [--end-date=N] # End date. ex.20210728
+ -o, [--output=OUTPUT] # Output format. [text|json]
Show google calendar
$
```
@@ -59,12 +60,12 @@
# Today's schedule
$ vgcal show
Period: 2021-07-24T00:00:00+09:00 - 2021-07-24T23:59:59+09:00
My tasks: 5.25h(0.66day)
- ・all day task 1: all day
- ・all day task2: all day
+ ・all day task 1: 0h
+ ・all day task2: 0h
・meeting1: 2.0h
・meeting2: 0.25h
・meeting3: 3.0h
Invited meetings: 0h(0day)
@@ -78,9 +79,33 @@
# 1 day later
$ vgcal show -d +1
# Schedule for 2021/07/01 - 2021/07/28
$ vgcal show -s 20210701 -e 20210728
+
+# Formatted json
+$ vgcal show -o json | jq .
+{
+ "start_date": "2021-09-05T00:00:00+09:00",
+ "end_date": "2021-09-05T23:59:59+09:00",
+ "tasks": [
+ {
+ "title": "all day task 1",
+ "time": 0,
+ "task_type": "my_task"
+ },
+ {
+ "title": "task a",
+ "time": 1,
+ "task_type": "my_task"
+ },
+ {
+ "title": "task b",
+ "time": 1,
+ "task_type": "my_task"
+ }
+ ]
+}
```
## Development
```shell