@@ -47,6 +47,7 @@ class SiteAliasCommand extends Command
47
47
private $ extraOptions = [
48
48
'ssh ' => [
49
49
'none ' => '' ,
50
+ 'tty ' => '-tt ' ,
50
51
'vagrant ' => '-o PasswordAuthentication=no -i ~/.vagrant.d/insecure_private_key ' ,
51
52
],
52
53
'container ' => [
@@ -131,6 +132,12 @@ protected function configure()
131
132
InputOption::VALUE_OPTIONAL ,
132
133
$ this ->trans ('commands.generate.site.alias.options.port ' )
133
134
)
135
+ ->addOption (
136
+ 'drupal-console-binary ' ,
137
+ null ,
138
+ InputOption::VALUE_OPTIONAL ,
139
+ $ this ->trans ('commands.generate.site.alias.options.drupal-console-binary ' )
140
+ )
134
141
->addOption (
135
142
'extra-options ' ,
136
143
null ,
@@ -232,6 +239,19 @@ protected function interact(
232
239
}
233
240
234
241
if ($ type !== 'local ' ) {
242
+ $ drupalConsoleBinary = $ input ->getOption ('drupal-console-binary ' );
243
+ if (!$ drupalConsoleBinary ) {
244
+
245
+ $ drupalConsoleBinary = $ this ->getIo ()->askEmpty (
246
+ $ this ->trans (
247
+ 'commands.generate.site.alias.questions.drupal-console-binary '
248
+ ),
249
+ 'drupal '
250
+ );
251
+
252
+ $ input ->setOption ('drupal-console-binary ' , $ drupalConsoleBinary );
253
+ }
254
+
235
255
$ extraOptions = $ input ->getOption ('extra-options ' );
236
256
if (!$ extraOptions ) {
237
257
$ options = array_values ($ this ->extraOptions [$ type ]);
@@ -308,6 +328,7 @@ protected function execute(
308
328
'environment ' => $ input ->getOption ('environment ' ),
309
329
'type ' => $ input ->getOption ('type ' ),
310
330
'extra_options ' => $ input ->getOption ('extra-options ' ),
331
+ 'drupal_console_binary ' => $ input ->getOption ('drupal-console-binary ' ),
311
332
'root ' => $ input ->getOption ('composer-root ' ),
312
333
'uri ' => $ input ->getOption ('site-uri ' ),
313
334
'port ' => $ input ->getOption ('port ' ),
0 commit comments