rsanchez / eecli

Command line interface for ExpressionEngine
MIT License
37 stars 13 forks source link

Error when creating multiple templates #23

Closed thisisjamessmith closed 9 years ago

thisisjamessmith commented 9 years ago

I get this when creating multiple templates with

eecli create:template something/index another-thing/index

PHP Fatal error: Call to a member function addError() on a non-object in phar:///usr/local/Cellar/eecli/1.0.7/libexec/eecli.phar/src/CodeIgniter/Functions.php on line 78

thisisjamessmith commented 9 years ago

Not sure if it's related or a separate issue, but I'm also unable to create fields with spaces in the Label like this. Tried with both double/single quotes and get an error about 'too many arguments'.

eecli create:field:text "Job title" people_job 5

rsanchez commented 9 years ago

Which version of EE are you using? And which shell (bash, zsh, etc.)? I can replicate the first one, but had no issue with the second. I'm thinking it might have something to do with your shell rather than with eecli itself.

thisisjamessmith commented 9 years ago

Using bash and EE 2.10.1

rsanchez commented 9 years ago

Fix the original issue. The other...I'm not sure about. Maybe try escaping your spaces with a backslash instead of quotes?