mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Configuration
- Allows rc.tag.indicator to replace the default + indicator. - Allows rc.active.indicator to replace the default * indicator. - Allows rc.recurrence.indicator to replace the default R indicator.
This commit is contained in:
parent
22d99806d0
commit
67546f8163
7 changed files with 52 additions and 17 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 9;
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'custom.rc')
|
||||
|
@ -50,6 +50,10 @@ like ($output, qr/ID R/, 'Recurrence indicator heading');
|
|||
like ($output, qr/3\s+R/, 'Recurrence indicator t1');
|
||||
unlike ($output, qr/2\s+R/, 'No recurrence indicator t2');
|
||||
|
||||
$output = qx{../task rc:custom.rc foo rc.recurrence.indicator=RE 2>&1};
|
||||
like ($output, qr/3\s+RE/, 'Custom recurrence indicator t1');
|
||||
unlike ($output, qr/2\s+RE/, 'No custom recurrence indicator t2');
|
||||
|
||||
# Cleanup.
|
||||
unlink 'pending.data';
|
||||
ok (!-r 'pending.data', 'Removed pending.data');
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 9;
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'custom.rc')
|
||||
|
@ -50,6 +50,10 @@ like ($output, qr/ID T/, 'Tag indicator heading');
|
|||
like ($output, qr/1\s+\+/, 'Tag indicator t1');
|
||||
unlike ($output, qr/2\s+\+/, 'No tag indicator t2');
|
||||
|
||||
my $output = qx{../task rc:custom.rc foo rc.tag.indicator=TAG 2>&1};
|
||||
like ($output, qr/1\s+TAG/, 'Custom ag indicator t1');
|
||||
unlike ($output, qr/2\s+TAG/, 'No custom tag indicator t2');
|
||||
|
||||
# Cleanup.
|
||||
unlink 'pending.data';
|
||||
ok (!-r 'pending.data', 'Removed pending.data');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue