daily-checklist

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 8 Imported by: 0

README

daily-checklist

Simple tool for generating daily checklists in markdown

NAME:
   daily-checklist - Daily checklist processor

USAGE:
   daily-checklist template_file_name [date]

   Processes the template and outputs the result to stdout. If date is not provided, current date will be used.

NOTES:
   Template file can be any text file. All lines will be printed to stdout by default.
   To control if a line should be outputted add "<!-- @ [dom] [mon] [dow] -->" segment to the line which will output it only if the date matches the template. Date matching uses cron formatting.

Example usage

For the following example:

## Daily checklist

* [ ] Check weight <!-- @ * * 0 -->
* [ ] Exercise <!-- @ * * 2,4 -->
* [ ] Work <!-- @ * * 1,2,3,4,5 -->
* [ ] Prepare personal budget for next month <!-- @ 25 * * -->
* [ ] Bought christmas presents <!-- @ 20 12 * -->
daily-checklist examples/checklist.md 2000-01-01
## Daily checklist

daily-checklist examples/checklist.md 2000-01-04
## Daily checklist

* [ ] Exercise <!-- @ * * 2,4 -->
* [ ] Work <!-- @ * * 1,2,3,4,5 -->

Resulting into:

Daily checklist

  • Exercise
  • Work

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL