Enhancement - #307 show command

- introduced new show command to display configuration settings
- config command is used to just set config values
- modified documentation
- modified some unit tests calling 'task config' to 'task show'
This commit is contained in:
Federico Hernandez
2010-06-07 23:35:58 +02:00
parent f1368d6ac6
commit 51e5a18384
12 changed files with 156 additions and 125 deletions

View File

@@ -39,10 +39,10 @@ if (open my $fh, '>', 'rc.rc')
ok (-r 'rc.rc', 'Created rc.rc');
}
my $output = qx{../task rc:rc.rc config};
my $output = qx{../task rc:rc.rc show};
like ($output, qr/\sfoo\s+bar/, 'unmodified');
$output = qx{../task rc:rc.rc rc.foo:baz config};
$output = qx{../task rc:rc.rc rc.foo:baz show};
like ($output, qr/\sfoo\s+baz/, 'overridden');
unlink 'rc.rc';