summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-11 22:29:20 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-11 22:29:20 -0500
commite1ffcccebd2a76fb69e3cbba9d17857a94ee61e2 (patch)
tree748934273b930808a9fedd69c30b8ceef1482773 /main.go
parent98c6611a757810edfe678a9bfd58ad04b4477441 (diff)
Add doc comment for the program
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.go b/main.go
index 80aa62f..097f7bd 100644
--- a/main.go
+++ b/main.go
@@ -1,3 +1,16 @@
+// This program creates tasks in Todoist, based on time specificiations in the
+// cron format. It takes one argument (the path to the input file) and requires
+// that your Todoist developer token be set in the TODOIST_TOKEN environment
+// variable.
+//
+// The input file must be a text file where each line is either empty, a comment
+// (starting with #), or a cron specification followed by the name of the task.
+// Note that the cron specification must be provided as five whitespace
+// separated fields; this program doesn't currently support all the features of
+// robfig/cron (e.g. '@monthly').
+//
+// The input file is checked for changes each minute, and the program creates
+// Todoist tasks when their cron run time occurs.
package main
import (