cli to pttodo, gomod all over

master
Bel LaPointe 2021-12-31 21:55:35 -05:00
parent 03f77ae2a9
commit 3d5192b87c
7 changed files with 67 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
todo-server-yaml
cmd/cmd
cmd/cli
cmd/pttodo/pttodo

12
cmd/pttodo/go.mod Normal file
View File

@ -0,0 +1,12 @@
module pttodo
go 1.17
require (
gopkg.in/yaml.v2 v2.4.0
local/pt-todo-server v0.0.0-00010101000000-000000000000
)
require github.com/robfig/cron/v3 v3.0.1 // indirect
replace local/pt-todo-server => ../../

6
cmd/pttodo/go.sum Normal file
View File

@ -0,0 +1,6 @@
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

34
cmd/pttodo/todo.yaml Normal file
View File

@ -0,0 +1,34 @@
todo:
- my new todo
- todo: when to run scheduled modifier? like, syncthing could have conflicts if I modify only file on remote
details: |
- if it's a web ui hook or somethin, then it'd only have file conflict if I modify without waiting
- but thats a step back from current todo solution
- todo: ez edit on many platforms, even offline and mobile
details: |
mobile view + complete method
collab editing of file prob resolves mobile and other stuff...
has issue of rich text ass bullshit and still having to type/indent
web server access to ops
is a web ui for mobile best solution?
let git be smart-ish and keep latest? would provide versioning OOTB without touching raw
- todo: crontab -e style editing to ensure good syntax
done:
- todo: YAML based todo
details:
because goddamnit a year of this shit
isn't significant on disk or in RAM for vim
- todo: yaml based todo for plaintext
details: a year isnt even a mb
- ez edit, start on many platforms
- defer
- schedule
- looping
- details
- todo: let UI be UI for whatever platform
- tags
- todo: sub tasks
subtasks:
- a

8
go.mod Normal file
View File

@ -0,0 +1,8 @@
module local/pt-todo-server
go 1.17
require (
github.com/robfig/cron/v3 v3.0.1
gopkg.in/yaml.v2 v2.4.0
)

6
go.sum Normal file
View File

@ -0,0 +1,6 @@
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=