add config
This commit is contained in:
@@ -22,6 +22,11 @@ class Taskwarrior
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* @var Config
|
||||
*/
|
||||
private $config;
|
||||
|
||||
/**
|
||||
* @param string $taskrc
|
||||
* @param string $taskData
|
||||
@@ -192,6 +197,19 @@ class Taskwarrior
|
||||
return $this->version = trim($this->command('_version'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Config
|
||||
* @throws CommandException
|
||||
*/
|
||||
public function config()
|
||||
{
|
||||
if (!$this->config) {
|
||||
$this->config = Config::create($this->command('_show'));
|
||||
}
|
||||
|
||||
return $this->config;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return array
|
||||
|
Reference in New Issue
Block a user