You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, commands like init-drupal accept a lot of options. It's easy to forget an option and by the time you realise it, you have to start all over again. As we think about adding new options, this problem is only going to get worse.
Should we instead prompt for options so that the user has a chance to specify each thing before the operation executes? Of course, if the user has specified it on the command line, that option won't be prompted. Let's weigh this option (pun intended):
Pros
No need to remember multiple options
User experience might be better as it will be interactive leading to lesser chance of typos
Cons
Harder to use in scripts (you have to specify each option in the command line or the script would get stuck waiting for inputs)
I am leaning towards prompts because I don't see this tool used that often. Since it is only used occasionally, it's harder to remember all the options. Prompts would be helpful in those cases. Also, I don't have a use case of using this tool in a script.
Are there any scenarios I am not considering?
The text was updated successfully, but these errors were encountered:
+1 on using prompts. For the "cons" you have mentioned, I think there is a solution for that - there could be a flag -y which if provided, then the init-drupal will be run with defaults.
I guess that -y could be made in sync with -i option in docker-run, so as to make room for the ability to run in CIs, but that is a different story. I think we can for sure use prompts and that will make the tool better.
+1 for using prompts, just like what Lando does. That is easier. Just that if there are more options available, the prompt option might get lengthy. On the other side init-drupal --help provides all the options.
Right now, commands like
init-drupal
accept a lot of options. It's easy to forget an option and by the time you realise it, you have to start all over again. As we think about adding new options, this problem is only going to get worse.Should we instead prompt for options so that the user has a chance to specify each thing before the operation executes? Of course, if the user has specified it on the command line, that option won't be prompted. Let's weigh this option (pun intended):
Pros
Cons
I am leaning towards prompts because I don't see this tool used that often. Since it is only used occasionally, it's harder to remember all the options. Prompts would be helpful in those cases. Also, I don't have a use case of using this tool in a script.
Are there any scenarios I am not considering?
The text was updated successfully, but these errors were encountered: