diff --git a/shift-cli b/shift-cli index ff96916..7e409e0 100755 --- a/shift-cli +++ b/shift-cli @@ -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)); diff --git a/src/Commands/PublishCommand.php b/src/Commands/PublishCommand.php index b043df5..2cd34fe 100644 --- a/src/Commands/PublishCommand.php +++ b/src/Commands/PublishCommand.php @@ -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' => [], - ]); - } }