mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Samples
- Added more sample banners for taskwarrior.org.
This commit is contained in:
parent
9aedaba7f2
commit
084d104c2f
5 changed files with 109 additions and 1 deletions
|
@ -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
|
19
doc/misc/run.sample.color
Executable file
19
doc/misc/run.sample.color
Executable file
|
@ -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
|
||||
|
47
doc/misc/run.sample.holidays
Executable file
47
doc/misc/run.sample.holidays
Executable file
|
@ -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 <<EOF >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
|
||||
|
42
doc/misc/run.sample.journal
Executable file
42
doc/misc/run.sample.journal
Executable file
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue