master
Bel LaPointe 2021-12-31 15:13:20 -05:00
parent 8fca25b8f9
commit 80af3093b0
6 changed files with 33 additions and 4 deletions

4
main.go Normal file
View File

@ -0,0 +1,4 @@
package main
func main() {
}

7
pttodo/root.go Normal file
View File

@ -0,0 +1,7 @@
package pttodo
type Root struct {
Todo []Todo
Scheduled []Todo
Done []Todo
}

3
pttodo/schedule.go Normal file
View File

@ -0,0 +1,3 @@
package pttodo
type Schedule string

8
pttodo/todo.go Normal file
View File

@ -0,0 +1,8 @@
package pttodo
type Todo struct {
Todo string
Detail string
TS TS
Schedule Schedule
}

3
pttodo/ts.go Normal file
View File

@ -0,0 +1,3 @@
package pttodo
type TS string

View File

@ -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