~kris/hacks

stask

b01b6241cbe3d58393bde197c3550fe3f3872681 — Kris Yotam 5 months ago 30ed01d
clarify that add text must be quoted in usage and man page
2 files changed, 5 insertions(+), 3 deletions(-)

M stask.1
M stask.c
M stask.1 => stask.1 +4 -2
@@ 22,7 22,7 @@ stask \- simple task manager with markdown documents
.B stask
.I list
.B add
.I text
.I \(dqtext\(dq
.br
.B stask
.I list


@@ 99,11 99,13 @@ Show all tasks in
displaying their done status, ID, title, and date.
.SS Task Operations
.TP
.IB list " add " text
.IB list " add " \(dqtext\(dq
Add a new task to
.I list
with the given
.IR text .
The text must be quoted if it contains spaces (e.g.,
.BR """On the Modern Professor""" ).
Creates a markdown document with YAML frontmatter at
.IR ~/.local/share/stask/docs/<list>/<id>.md .
Prints the assigned task ID.

M stask.c => stask.c +1 -1
@@ 17,7 17,7 @@ usage(void)
		"       stask new <list>\n"
		"       stask rm <list>\n"
		"       stask <list>\n"
		"       stask <list> add <text>\n"
		"       stask <list> add \"<text>\"\n"
		"       stask <list> done <id>\n"
		"       stask <list> undo <id>\n"
		"       stask <list> del <id>\n"