yui/yogi — pull request #91 by darielnoel (2013-08-21 20:58:06+00:00)
Title: Making create.js more extensible

I am using Yogi sub commands for adding some features that I need for example, I need to generate an app skeleton from some configuration file. I have looked at create.js in yogi/lib/, in this file, I have found some functions like
createJSON(), and createDirs() which I would like to use in my custom sub command. The problem is that I can not access these functions from my custom sub command.

I make YogiCreate = require(path.join(YOGI_PATH, 'lib/create')), but YogiCreate only contain the init() function. That is because create.js only export the init() function.

We could fix that in create.js, if we could export the createJSON() and createDirs() function.

I think that could be good, for adding more Yogi extensibility and reusability.

Best Regards Dariel