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

Option -b creates wrong model file name #108

Closed
larsbo opened this issue Mar 9, 2017 · 2 comments · Fixed by #147
Closed

Option -b creates wrong model file name #108

larsbo opened this issue Mar 9, 2017 · 2 comments · Fixed by #147

Comments

@larsbo
Copy link

larsbo commented Mar 9, 2017

I want to create a plugin with both a backend module and a command. If i use

sw plugin:create MyPluginName -b -c

it asks for a backend main model and creates the plugin boilerplace where the command and model file names are

Commands/'plugin:create' MyPluginName -b -c.php
Models/'plugin:create' MyPluginName -b -c.php

Using just the -b option creates also a wrong model file called

Models/'plugin:create' MyPluginName -b.php

Testet on MacOs Sierra inside iTerm2 using zsh with latest cli version 1933dbc

mitelg added a commit to mitelg/sw-cli-tools that referenced this issue Nov 16, 2018
mitelg added a commit to mitelg/sw-cli-tools that referenced this issue Nov 16, 2018
mitelg added a commit that referenced this issue Nov 16, 2018
@mitelg
Copy link
Contributor

mitelg commented Nov 16, 2018

hey @larsbo
this should be fixed now. If no Model is given, the suggested default model is taken

@larsbo
Copy link
Author

larsbo commented Nov 16, 2018

awesome, @mitelg ! 💙 🎉

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

Successfully merging a pull request may close this issue.

2 participants