From 084d104c2f52a2f3ca6907762d8f890dbe41cc97 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Sep 2010 15:12:05 -0400 Subject: [PATCH] Samples - Added more sample banners for taskwarrior.org. --- doc/misc/{run.banner => run.sample.blue} | 2 +- doc/misc/run.sample.color | 19 ++++++++++ doc/misc/run.sample.holidays | 47 ++++++++++++++++++++++++ doc/misc/run.sample.journal | 42 +++++++++++++++++++++ doc/misc/{run.banner2 => run.sample.red} | 0 5 files changed, 109 insertions(+), 1 deletion(-) rename doc/misc/{run.banner => run.sample.blue} (96%) create mode 100755 doc/misc/run.sample.color create mode 100755 doc/misc/run.sample.holidays create mode 100755 doc/misc/run.sample.journal rename doc/misc/{run.banner2 => run.sample.red} (100%) diff --git a/doc/misc/run.banner b/doc/misc/run.sample.blue similarity index 96% rename from doc/misc/run.banner rename to doc/misc/run.sample.blue index 1c56a7ced..9fbc455a6 100755 --- a/doc/misc/run.banner +++ b/doc/misc/run.sample.blue @@ -8,7 +8,7 @@ rm pending.data completed.data undo.data echo 'data.location=.' > x echo '_forcecolor=on' >> x echo 'defaultwidth=120' >> x -echo 'include /usr/local/share/doc/task/rc/dark-red-256.theme' >> x +echo 'include /usr/local/share/doc/task/rc/dark-blue-256.theme' >> x echo 'color.alternate=' >> x echo 'report.list.columns=id,project,priority_long,start,due,recur,age_compact,tags,description' >> x diff --git a/doc/misc/run.sample.color b/doc/misc/run.sample.color new file mode 100755 index 000000000..cc8cc1597 --- /dev/null +++ b/doc/misc/run.sample.color @@ -0,0 +1,19 @@ +#! /bin/bash + +# Small script to create a fragment of output for display on the front page +# of taskwarrior.org, as a teaser. + +rm pending.data completed.data undo.data + +echo 'data.location=.' > x +echo '_forcecolor=on' >> x +echo 'include /usr/local/share/doc/task/rc/dark-green-256.theme' >> x + + +# Now the visible part. +echo +echo '$ task color' +task rc:x color + +exit + diff --git a/doc/misc/run.sample.holidays b/doc/misc/run.sample.holidays new file mode 100755 index 000000000..58c6eb97c --- /dev/null +++ b/doc/misc/run.sample.holidays @@ -0,0 +1,47 @@ +#! /bin/bash + +# Small script to create a fragment of output for display on the front page +# of taskwarrior.org, as a teaser. + +rm pending.data completed.data undo.data + +echo 'data.location=.' > x +echo '_forcecolor=on' >> x +echo 'defaultwidth=95' >> x +echo 'monthsperline=3' >> x +echo 'calendar.details.report=list' >> x +echo 'calendar.details=full' >> x +echo 'calendar.holidays=full' >> x +echo 'calendar.legend=yes' >> x +echo 'include /usr/local/share/doc/task/rc/dark-green-256.theme' >> x +echo 'include /usr/local/share/doc/task/rc/holidays-US.rc' >> x + +# Import tasks with old timestamps +cat <file.yaml +%YAML 1.1 +--- + task: + description: Put some more sample screenshots on taskwarrior.org + entry: 1283593511 + project: 1.9.3 + status: pending + due: 1284647841 + uuid: 89295b14-9e15-4771-9dd9-7e82cf8b67b5 + annotation: + entry: 1283593519 + description: Show the calendar with holidays + annotation: + entry: 1283693560 + description: Show a task that is due +... +EOF + +printf "y\n" | task rc:x import file.yaml + +# Now the visible part. +echo +echo '$ task calendar' +task rc:x calendar + +exit + diff --git a/doc/misc/run.sample.journal b/doc/misc/run.sample.journal new file mode 100755 index 000000000..143332ae5 --- /dev/null +++ b/doc/misc/run.sample.journal @@ -0,0 +1,42 @@ +#! /bin/bash + +# Small script to create a fragment of output for display on the front page +# of taskwarrior.org, as a teaser. + +rm pending.data completed.data undo.data + +echo 'data.location=.' > x +echo '_forcecolor=on' >> x +echo 'defaultwidth=90' >> x +echo 'journal.time=yes' >> x +echo 'dateformat.annotation=Y/m/d H:N' >> x +#echo 'include /usr/local/share/doc/task/rc/dark-256.theme' >> x +#echo 'include /usr/local/share/doc/task/rc/dark-green-256.theme' >> x +echo 'include /usr/local/share/doc/task/rc/dark-yellow-green.theme' >> x + +# Now the visible part. +echo +echo '$ task add Complete the client report due:friday +@work' +task rc:x add Complete the client report due:friday +@work +echo +echo '$ task config journal.time on' +echo "Are you sure you want to add 'journal.time' with a value of 'on'? (y/n) y" +echo 'Config file .taskrc modified.' +echo +echo '$ task start 1' +task rc:x start 1 +echo +echo '(some work happens)' +sleep 2 +echo +echo '$ task list' +task rc:x list +echo +echo '$ task stop 1' +task rc:x stop 1 +echo +echo '$ task list' +task rc:x list + +exit + diff --git a/doc/misc/run.banner2 b/doc/misc/run.sample.red similarity index 100% rename from doc/misc/run.banner2 rename to doc/misc/run.sample.red