@@ 127-130 (lines=4) @@ | ||
124 | $this->line('Skeleton: '.$skeleton); |
|
125 | $this->line('Languages: '.implode(', ', $properties['languages'])); |
|
126 | ||
127 | if (!$this->option('yes') && !$this->confirm('generate ready? [Y/n]', true)) { |
|
128 | $this->comment('canceled'); |
|
129 | return; |
|
130 | } |
|
131 | ||
132 | try { |
|
133 | $generator->generateAddon($output_path, str_replace(':', '-', $skeleton), $properties); |
@@ 56-62 (lines=7) @@ | ||
53 | $this->line('Addon name: '.$addon_name); |
|
54 | $this->line('Addon path: '.$addon->relativePath($this->laravel)); |
|
55 | ||
56 | if (!$this->option('force')) { |
|
57 | if (!$this->confirm('Are you sure? [y/N]', false)) { |
|
58 | $this->comment('canceled'); |
|
59 | ||
60 | return; |
|
61 | } |
|
62 | } |
|
63 | ||
64 | // process |
|
65 | $filesystem->deleteDirectory($addon->path()); |