New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give site-install an interactive mode. #2484
Comments
@greg-1-anderson I wonder if you'd be willing to take a look at this In the file: $db_spec['database'] = drush_prompt('Database name');
$db_spec['driver'] = drush_prompt('Database driver', 'mysql');
$db_spec['username'] = drush_prompt('Database username');
$db_spec['password'] = drush_prompt('Database password');
$db_spec['host'] = drush_prompt('Database host', 'localhost');
$db_spec['port'] = drush_prompt('Database port', '3306');
//$db_spec->db_prefix = drush_prompt('Database prefix', NULL);
//return drush_sql_get_class($db_spec);
$sql = drush_sql_get_class($db_spec); That seems to get the There must be a way I can pass the |
In 8.x, you could try with drush_set_option('db-url, drush_sitealias_convert_db_spec_to_db_url($db_spec)); Note that we'll need PR for master branch first, and then can merge this into 8.x. Thanks for the great improvement. |
Issue drush-ops#2484: Give site-install and interactive mode. Issue drush-ops#2484: Give site-install and interactive mode.
This went in |
If no
--db-url
option is specified drop into interactive shell prompts to get the required information form the user.The text was updated successfully, but these errors were encountered: