- Updated 'run' script to exercise the old 2.0 command line examples, as well
  as the new 2.4.0 examples.
This commit is contained in:
Paul Beckingham 2014-04-18 00:07:36 -04:00
parent aa9e3da77b
commit 1a731500e6

55
src/run
View file

@ -1,16 +1,49 @@
# 2.0.0 command line tests:
#echo; ./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/
#echo; ./args rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/"
#echo; ./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag
#echo; ./args rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing
#echo; ./args rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing
#echo; ./args rc:x rc.debug:1 1234 done pri:H
#echo; ./args rc:x rc.debug:1 a.b\<c \(one or two\) modify 'quoted string' \'not quoted\' due:eom+1wk+1d
echo
echo ./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/
./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/
echo
echo ./args rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/"
./args rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/"
echo
echo ./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag
./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag
echo
echo ./args rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing
./args rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing
echo
echo ./args rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing
./args rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing
echo
echo ./args rc:x rc.debug:1 1234 done pri:H
./args rc:x rc.debug:1 1234 done pri:H
echo
echo ./args rc:x rc.debug:1 a.b\<c \(one or two\) modify 'quoted string' \'not quoted\' due:eom+1wk+1d
./args rc:x rc.debug:1 a.b\<c \(one or two\) modify 'quoted string' \'not quoted\' due:eom+1wk+1d
# 2.4.0 command line tests:
echo; ./args rc:~/.taskrc 123-128,140 142 mod pro:'P 1' +home /from/to/g /from/to/ rc.name=value
echo; ./args rc:~/..taskrc rc.name=value add -- modify +tag /from/to/g name:value /long/path/to/file.txt
echo; ./args /pattern/ or 8ad2e3db-914d-4832-b0e6-72fa04f6e331 limit:10 due.before:eom nex
echo; ./args add Buy milk due:'eow - 2d' scheduled:due-1d
echo
echo ./args rc:~/.taskrc 123-128,140 142 mod pro:'P 1' +home /from/to/g /from/to/ rc.name=value
./args rc:~/.taskrc 123-128,140 142 mod pro:'P 1' +home /from/to/g /from/to/ rc.name=value
echo
echo ./args rc:~/..taskrc rc.name=value add -- modify +tag /from/to/g name:value /long/path/to/file.txt
./args rc:~/..taskrc rc.name=value add -- modify +tag /from/to/g name:value /long/path/to/file.txt
echo
echo ./args /pattern/ or 8ad2e3db-914d-4832-b0e6-72fa04f6e331 limit:10 due.before:eom nex
./args /pattern/ or 8ad2e3db-914d-4832-b0e6-72fa04f6e331 limit:10 due.before:eom nex
echo
echo ./args add Buy milk due:'eow - 2d' scheduled:due-1d
./args add Buy milk due:'eow - 2d' scheduled:due-1d