TW-1440: Implement "task import" from STDIN

- Read tasks from STDIN when no files are specified, or only "-"
  is specified.
This commit is contained in:
Wilhelm Schuermann 2015-05-25 14:25:43 +02:00
parent 3e043291f0
commit a78c9a6eb8
14 changed files with 124 additions and 42 deletions

View file

@ -345,13 +345,15 @@ In general, this is not the recommended method of modifying tasks, but is
provided for exceptional circumstances. Use carefully.
.TP
.B task import <file> [<file> ...]
.B task import [<file> ...]
Imports tasks in the JSON format. The standard task release comes with a few
example scripts, such as:
import-todo.sh.pl
import-yaml.pl
If no file or "-" is specified, import tasks from STDIN.
.TP
.B task log <mods>
Adds a new task that is already completed, to the task list.