Closed fermuch closed 8 years ago
To get names for module and entity, we use this code: let [moduleName, entityName] = name.split(':');
(see here).
I have a suggestion: we can do length check on name.split(':')
and return false while validating. https://github.com/mantrajs/mantra-cli/blob/master/lib/commands/generate.js#L32-L45
Would you like to do a PR? Should be a quick one.
I accidentally wrote this:
It should throw an error instead of creating files without a name.