diff --git a/.gitignore b/.gitignore index c7e91dd..650d8ad 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ todo-server-yaml cmd/cmd cmd/cli +cmd/pttodo/pttodo diff --git a/cmd/cli.go b/cmd/pttodo/cli.go similarity index 100% rename from cmd/cli.go rename to cmd/pttodo/cli.go diff --git a/cmd/pttodo/go.mod b/cmd/pttodo/go.mod new file mode 100644 index 0000000..182080f --- /dev/null +++ b/cmd/pttodo/go.mod @@ -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 => ../../ diff --git a/cmd/pttodo/go.sum b/cmd/pttodo/go.sum new file mode 100644 index 0000000..441e8f1 --- /dev/null +++ b/cmd/pttodo/go.sum @@ -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= diff --git a/cmd/pttodo/todo.yaml b/cmd/pttodo/todo.yaml new file mode 100644 index 0000000..3738364 --- /dev/null +++ b/cmd/pttodo/todo.yaml @@ -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 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e444ddd --- /dev/null +++ b/go.mod @@ -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 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..441e8f1 --- /dev/null +++ b/go.sum @@ -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=