2020-05-03 16:41:59 -05:00
< ? php
namespace Aerex\BaikalStorage\Configs ;
2020-05-29 11:45:53 -05:00
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition ;
2020-05-03 16:41:59 -05:00
class TaskwarriorConfig {
public function get () {
2020-05-29 11:45:53 -05:00
$node = new ArrayNodeDefinition ( 'taskwarrior' );
$node -> canBeEnabled ()
-> children ()
-> scalarNode ( 'taskdata' )
-> defaultValue ( '~/.task' )
2020-06-14 23:55:05 -05:00
-> info ( 'The environment variable overrides the default and the command line, and the "data.location" configuration setting of the task data directory' )
2020-05-29 11:45:53 -05:00
-> end ()
-> scalarNode ( 'taskrc' )
-> defaultValue ( '~/.taskrc' )
2020-06-14 23:55:05 -05:00
-> info ( 'The enivronment variable overrides the default and the command line specification of the .taskrc file' )
2020-05-29 11:45:53 -05:00
-> end ()
2020-06-14 23:55:05 -05:00
-> scalarNode ( 'project_category_prefix' )
2020-05-29 11:45:53 -05:00
-> defaultValue ( 'project_' )
2020-06-14 23:55:05 -05:00
-> info ( 'The word after the given prefix for a iCal category will be used to identify a task\'s project' )
2020-05-29 11:45:53 -05:00
-> end ()
-> end ();
2020-05-03 16:41:59 -05:00
return $node ;
}
}