From 80af3093b00ed7783533467a7c3a197c6becc273 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 31 Dec 2021 15:13:20 -0500 Subject: [PATCH] rename --- main.go | 4 ++++ pttodo/root.go | 7 +++++++ pttodo/schedule.go | 3 +++ pttodo/todo.go | 8 ++++++++ pttodo/ts.go | 3 +++ sample.yaml | 12 ++++++++---- 6 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 main.go create mode 100644 pttodo/root.go create mode 100644 pttodo/schedule.go create mode 100644 pttodo/todo.go create mode 100644 pttodo/ts.go 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