rename
This commit is contained in:
7
pttodo/root.go
Normal file
7
pttodo/root.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package pttodo
|
||||
|
||||
type Root struct {
|
||||
Todo []Todo
|
||||
Scheduled []Todo
|
||||
Done []Todo
|
||||
}
|
||||
3
pttodo/schedule.go
Normal file
3
pttodo/schedule.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package pttodo
|
||||
|
||||
type Schedule string
|
||||
8
pttodo/todo.go
Normal file
8
pttodo/todo.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package pttodo
|
||||
|
||||
type Todo struct {
|
||||
Todo string
|
||||
Detail string
|
||||
TS TS
|
||||
Schedule Schedule
|
||||
}
|
||||
3
pttodo/ts.go
Normal file
3
pttodo/ts.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package pttodo
|
||||
|
||||
type TS string
|
||||
12
sample.yaml
12
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
|
||||
|
||||
Reference in New Issue
Block a user