pantheon-systems / terminus

The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform
https://pantheon.io
Other
318 stars 195 forks source link

connection:info MySQL Command field returns incorrectly formatted password. #2618

Open kazajhodo opened 2 months ago

kazajhodo commented 2 months ago

Platform

(x) MacOS ( ) Linux ( ) WSL2

Installed Via

(x) Homebrew ( ) Apt Package ( ) Manually

PHP Version

(x) 7.4x (x) 8.0 (x) 8.1

Terminus Version

3.5.2

Command Executed

terminus connection:info something.live --field='MySQL Command'

Expected behavior

mysql -u pantheon -p password -h host -P port pantheon

Actual behavior

mysql -u pantheon -ppassword -h host -P port pantheon

kazajhodo commented 2 months ago

/src/Models/Environment.php line 337

$command = "mysql -u $username -p$password -h $domain -P $port $database";

$command = "mysql -u $username -p $password -h $domain -P $port $database";

kazajhodo commented 2 months ago

Pull request is in:

 Fix connection:info MySQL Command formatting. #2619