File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
use Drush \Exec \ExecTrait ;
10
10
use Drush \Sql \SqlBase ;
11
11
use Consolidation \OutputFormatters \StructuredData \PropertyList ;
12
+ use Symfony \Component \Console \Input \InputInterface ;
12
13
13
14
class SqlCommands extends DrushCommands
14
15
{
@@ -137,11 +138,13 @@ public function drop($options = [])
137
138
* @remote-tty
138
139
* @bootstrap max configuration
139
140
*/
140
- public function cli ($ options = ['extra ' => self ::REQ ])
141
+ public function cli (InputInterface $ input , $ options = ['extra ' => self ::REQ ])
141
142
{
142
143
$ sql = SqlBase::create ($ options );
143
144
$ process = $ this ->processManager ()->shell ($ sql ->connect (), null , $ sql ->getEnv ());
144
- $ process ->setTty (true );
145
+ $ process ->setTty ($ this ->getConfig ()->get ('ssh.tty ' , $ input ->isInteractive ()));
146
+ $ process ->setInput (STDIN );
147
+ $ process ->mustRun ($ process ->showRealtime ());
145
148
$ process ->mustRun ();
146
149
}
147
150
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ public function redispatch(InputInterface $input)
97
97
$ aliasRecord = $ this ->siteAliasManager ()->getSelf ();
98
98
$ process = $ this ->processManager ->drushSiteProcess ($ aliasRecord , $ redispatchArgs , $ redispatchOptions );
99
99
$ process ->setTty ($ this ->getConfig ()->get ('ssh.tty ' , $ input ->isInteractive ()));
100
+ $ process ->setInput (STDIN );
100
101
$ process ->mustRun ($ process ->showRealtime ());
101
102
102
103
return $ this ->exitEarly ($ process ->getExitCode ());
You can’t perform that action at this time.
0 commit comments