Conditions | 3 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function handle(): void |
||
33 | { |
||
34 | $productName = $this->argument('product'); |
||
35 | $skipConfirmation = $this->option('y'); |
||
36 | $confirmationMessage = sprintf( |
||
37 | "This command will attempt to update documentation for product (%s). \n" |
||
38 | . 'Please ensure your internet connection is stable. Ready?', |
||
39 | $productName |
||
|
|||
40 | ); |
||
41 | |||
42 | $this->comment(PHP_EOL |
||
43 | . "<info>♣♣♣</info> Docweaver DocumentationPublisher \n" |
||
44 | . 'Help is here, try: php artisan docweaver:update --help'); |
||
45 | |||
46 | if ($skipConfirmation || $this->confirm($confirmationMessage)) { |
||
47 | $this->info("Updating {$productName}.\nT: " . Carbon::now()->toCookieString() . "\n----------"); |
||
48 | |||
49 | $result = $this->publisher->update($productName, $this); |
||
50 | |||
51 | $this->displayResult($result); |
||
52 | } |
||
55 |