diff --git a/main.go b/main.go new file mode 100644 index 0000000..da29a2c --- /dev/null +++ b/main.go @@ -0,0 +1,4 @@ +package main + +func main() { +} diff --git a/pttodo/root.go b/pttodo/root.go new file mode 100644 index 0000000..8c74aea --- /dev/null +++ b/pttodo/root.go @@ -0,0 +1,7 @@ +package pttodo + +type Root struct { + Todo []Todo + Scheduled []Todo + Done []Todo +} diff --git a/pttodo/schedule.go b/pttodo/schedule.go new file mode 100644 index 0000000..2cc18cd --- /dev/null +++ b/pttodo/schedule.go @@ -0,0 +1,3 @@ +package pttodo + +type Schedule string diff --git a/pttodo/todo.go b/pttodo/todo.go new file mode 100644 index 0000000..f400f88 --- /dev/null +++ b/pttodo/todo.go @@ -0,0 +1,8 @@ +package pttodo + +type Todo struct { + Todo string + Detail string + TS TS + Schedule Schedule +} diff --git a/pttodo/ts.go b/pttodo/ts.go new file mode 100644 index 0000000..4eebf9a --- /dev/null +++ b/pttodo/ts.go @@ -0,0 +1,3 @@ +package pttodo + +type TS string diff --git a/sample.yaml b/sample.yaml index 547ea88..07abf27 100644 --- a/sample.yaml +++ b/sample.yaml @@ -3,12 +3,16 @@ todo: detail: | my super long description of stuff - - when: 321 # unix seconds int64 + ts: 111 + - todo: task that appeared when 'when' - loop: "* * * * *" # or ([0-9]*[a-z])+ for durations, or null for scheduled/deferred + loop: "* * * * *" # or ([0-9]*[a-z])+ for durations, or int for scheduled/deferred + ts: 222 scheduled: - - when: 123 # unix seconds int64 + - todo: task that will appear when 'when' - loop: "* * * * *" # or ([0-9]*[a-z])+ for durations, or null for scheduled/deferred + loop: "* * * * *" # or ([0-9]*[a-z])+ for durations, or int for scheduled/deferred + ts: 333 done: - todo: task that is done + ts: 444