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