Skip to content
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

InitCommand should create sites folder by default #220

Closed
marcelovani opened this issue Aug 23, 2017 · 1 comment
Closed

InitCommand should create sites folder by default #220

marcelovani opened this issue Aug 23, 2017 · 1 comment

Comments

@marcelovani
Copy link
Member

marcelovani commented Aug 23, 2017

The command drupal -n --override init creates ~/.console folder
it also creates ~/.console/chain.
It does not copy the example files, which is fair enough, but it does create the chain folder.

When you try to run any command without sites folder, it shows this error:

You must call one of in() or append() methods before iterating over a Finder

I am proposing this command creates ~/.console/sites, but not copy site examples, same way it happens to chain folder.
Also, we should have a more friendly message, i.e.

Could not find any site on ~/.console/sites folder

jmolivas added a commit to jmolivas/drupal-console-core that referenced this issue Sep 2, 2017
@jmolivas
Copy link
Member

jmolivas commented Sep 2, 2017

@marcelovani Fixed with PR #231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants