Skip to content

Commit

Permalink
Correct method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed Aug 24, 2023
1 parent 6eb55e2 commit 986ccd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion shift-cli
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $taskManifest = new TaskManifest(
$defaults['tasks'],
);

Configuration::setDefaults($defaults['run']);
Configuration::setDefaultTasks($defaults['run']);

$application = new Application();
$application->add(new DiscoverCommand($taskManifest));
Expand Down
9 changes: 1 addition & 8 deletions src/Commands/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}

file_put_contents('shift-cli.json', json_encode($this->defaultConfig(), JSON_PRETTY_PRINT));
file_put_contents('shift-cli.json', json_encode(Configuration::defaults(), JSON_PRETTY_PRINT));

return 0;
}

private function defaultConfig(): array
{
return array_replace(Configuration::defaults(), [
'ignore' => [],
]);
}
}

0 comments on commit 986ccd0

Please sign in to comment.