From e1ffcccebd2a76fb69e3cbba9d17857a94ee61e2 Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Tue, 11 Nov 2025 22:29:20 -0500 Subject: Add doc comment for the program --- main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'main.go') 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 ( -- cgit v1.2.3