Nim/examples/cross_todo/nimrod_commandline
Araq a56418b716 Merge pull request #253 from gradha/pr_reduce_todo_code_repetition
Reduces code repetition through helper procs and templates.
2012-11-18 05:12:32 -08:00
..
nimrod.cfg Replaces shell scripts with nimrod configuration files. 2012-11-08 23:47:08 +01:00
nimtodo.nim Merge pull request #253 from gradha/pr_reduce_todo_code_repetition 2012-11-18 05:12:32 -08:00
readme.txt Replaces shell scripts with nimrod configuration files. 2012-11-08 23:47:08 +01:00

This directory contains the nimrod commandline version of the todo cross
platform example.

The commandline interface can be used only through switches, running the binary
once will spit out the basic help. The commands you can use are the typical on
such an application: add, check/uncheck and delete (further could be added,
like modification at expense of parsing/option complexity). The list command is
the only one which dumps the contents of the database. The output can be
filtered and sorted through additional parameters.

When you run the program for the first time the todo database will be generated
in your user's data directory. To cope with an empty database, a special
generation switch can be used to fill the database with some basic todo entries
you can play with.

Compilation is fairly easy despite having the source split in different
directories. Thanks to the nimrod.cfg file, which adds the ../nimrod_backend
directory as a search path, you can compile and run the example just fine from
the command line with 'nimrod c -r nimtodo.nim'.