From b32d731010aee7021dbd82d600b58985eb5160fc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 2 Sep 2010 21:22:25 -0400 Subject: [PATCH] Demo - Checking in demo scripts for creating the teaser banners that go up on the main tw page. --- doc/misc/run.banner | 74 ++++++++++++++++++++++++++++++++++++++++++++ doc/misc/run.banner2 | 74 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 148 insertions(+) create mode 100755 doc/misc/run.banner create mode 100755 doc/misc/run.banner2 diff --git a/doc/misc/run.banner b/doc/misc/run.banner new file mode 100755 index 000000000..1c56a7ced --- /dev/null +++ b/doc/misc/run.banner @@ -0,0 +1,74 @@ +#! /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=120' >> x +echo 'include /usr/local/share/doc/task/rc/dark-red-256.theme' >> x +echo 'color.alternate=' >> x + +echo 'report.list.columns=id,project,priority_long,start,due,recur,age_compact,tags,description' >> x +echo 'report.list.labels=ID,Project,Pri,Started,Due,Recur,Age,Tags,Description' >> x +echo 'report.list.sort=due+,priority_long-,project+' >> x + +# Import tasks with old timestamps +cat <file.yaml +%YAML 1.1 +--- + task: + description: Try out the color themes + entry: 1281914800 + start: 1282044800 + project: software + status: pending + uuid: 13afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Visit http://taskwarrior.org + entry: 1281089630 + tags: www + priority: H + project: software + status: pending + uuid: 23afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Review task list + entry: 1281289630 + due: 1282844800 + recur: weekly + project: gtd + status: pending + uuid: 33afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Try out latest FireFox beta + entry: 1281289630 + project: software + status: pending + uuid: 43afada0-a446-8d5a-c213-30d99d52c4b0 +... +EOF + +printf "y\n" | task rc:x import file.yaml + +# Now the visible part. +echo +echo '$ task 1 annotate Try the blue one first' +task rc:x 1 annotate Try the blue one first + +echo +echo '$ task list' +task rc:x list + +echo +echo '$ task list due.before:eow' +task rc:x list due.before:eow + +echo +echo '$ task 2 done' +task rc:x 2 done + +exit + diff --git a/doc/misc/run.banner2 b/doc/misc/run.banner2 new file mode 100755 index 000000000..064f65b8d --- /dev/null +++ b/doc/misc/run.banner2 @@ -0,0 +1,74 @@ +#! /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=120' >> x +echo 'include /usr/local/share/doc/task/rc/dark-red-256.theme' >> x +echo 'color.alternate=' >> x + +echo 'report.list.columns=id,project,priority_long,start,due,recur,age_compact,tags,description' >> x +echo 'report.list.labels=ID,Project,Pri,Started,Due,Recur,Age,Tags,Description' >> x +echo 'report.list.sort=due+,priority_long-,project+' >> x + +# Import tasks with old timestamps +cat <file.yaml +%YAML 1.1 +--- + task: + description: Try out the color themes + entry: 1281914800 + start: 1282044800 + project: software + status: pending + uuid: 13afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Visit http://taskwarrior.org + entry: 1281089630 + tags: www + priority: H + project: software + status: pending + uuid: 23afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Review task list + entry: 1281289630 + due: 1282844800 + recur: weekly + project: gtd + status: pending + uuid: 33afada0-a446-8d5a-c213-30d99d52c4b0 + task: + description: Try out latest FireFox beta + entry: 1281289630 + project: software + status: pending + uuid: 43afada0-a446-8d5a-c213-30d99d52c4b0 +... +EOF + +printf "y\n" | task rc:x import file.yaml + +# Now the visible part. +echo +echo '$ task 1 annotate Try the red one next' +task rc:x 1 annotate Try the red one next + +echo +echo '$ task list' +task rc:x list + +echo +echo '$ task 2 done' +task rc:x 2 done + +echo +echo '$ task summary' +task rc:x summary + +exit +