@@ 113-116 (lines=4) @@ | ||
110 | $this->line('Skeleton: '.$skeleton); |
|
111 | $this->line('Languages: '.implode(', ', $properties['languages'])); |
|
112 | ||
113 | if (!$this->option('yes') && !$this->confirm('Are you sure? [y/N]', false)) { |
|
114 | $this->comment('canceled'); |
|
115 | return; |
|
116 | } |
|
117 | ||
118 | try { |
|
119 | $generator->generateAddon($output_path, str_replace(':', '-', $skeleton), $properties); |
@@ 49-55 (lines=7) @@ | ||
46 | } |
|
47 | ||
48 | // confirm |
|
49 | if (!$this->option('force')) { |
|
50 | if (!$this->confirm('Are you sure? [y/N]', false)) { |
|
51 | $this->comment('canceled'); |
|
52 | ||
53 | return; |
|
54 | } |
|
55 | } |
|
56 | ||
57 | // process |
|
58 | $filesystem->deleteDirectory($env->path($addonName)); |