| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function handle(): int |
||
| 25 | { |
||
| 26 | $options = [ |
||
| 27 | 'All configs', |
||
| 28 | '<comment>hyde-configs</comment>: Main configuration files', |
||
| 29 | '<comment>support-configs</comment>: Laravel and package configuration files', |
||
| 30 | ]; |
||
| 31 | $selection = $this->choice('Which configuration files do you want to publish?', $options, 'All configs'); |
||
| 32 | |||
| 33 | $tag = $this->parseTagFromSelection($selection, $options); |
||
|
|
|||
| 34 | |||
| 35 | Artisan::call('vendor:publish', [ |
||
| 36 | '--tag' => $tag, |
||
| 37 | '--force' => true, |
||
| 38 | ], $this->output); |
||
| 39 | |||
| 40 | $this->infoComment(sprintf('Published config files to [%s]', Hyde::path('config'))); |
||
| 41 | |||
| 42 | return Command::SUCCESS; |
||
| 43 | } |
||
| 52 |