feat: Converted vcalendar todo events to taskwarrior tasks

This commit is contained in:
Aerex
2020-05-12 23:56:22 -05:00
parent 45ea34da94
commit 40b66fb38b
13 changed files with 198 additions and 114 deletions

View File

@@ -18,14 +18,15 @@ class Console extends AbstractConsole {
}
}
public function execute($cmd, $args, $input = null) {
public function execute($cmd, $args, $input = null, $envs = []) {
$stdin[] = $cmd;
$stdin[] = array_merge($stdin, $this->defaultArgs, $args);
$stdin = array_merge($stdin, $this->defaultArgs, $args);
if (isset($input)) {
$stdin[] = $this->convertToString($input);
$process = new Process($stdin);
}
$process = new Process(implode(' ', $stdin), $input, $envs);
$process->inheritEnvironmentVariables();
try {
$process->mustRun();