baikal-storage-plugin/lib/Configs/TaskwarriorConfig.php

29 lines
1.0 KiB
PHP
Raw Normal View History

2020-05-03 16:41:59 -05:00
<?php
namespace Aerex\BaikalStorage\Configs;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
2020-05-03 16:41:59 -05:00
class TaskwarriorConfig {
public function get() {
$node = new ArrayNodeDefinition('taskwarrior');
$node->canBeEnabled()
->children()
->scalarNode('taskdata')
->defaultValue('~/.task')
->info('The environment variable overrides the default and the command line, and the "data.location" configuration setting of the task data directory')
->end()
->scalarNode('taskrc')
->defaultValue('~/.taskrc')
->info('The enivronment variable overrides the default and the command line specification of the .taskrc file')
->end()
->scalarNode('default_calendar')
->info('The default calendar to send tasks if no task project is set. The value is the calendar\'s displayname')
->end()
->end();
2020-05-03 16:41:59 -05:00
return $node;
}
}