luizalabs/moo-cli

moo-cli shortcuts

Closed this issue · 1 comments

Explanation

I was wondering if we could create some shortcuts for the cli. Like instead of typing moo[-cli] <command> <name> <...extras> we could have something like mooc <name> <...extras> for creating components, for example.

How

I'm not 100% sure on how this could be possible, but I think we could change the bin key on the moo-cli package.json file to something like this:

{
    ...
    bin: {
        moo-cli: "dist/index.js",
        moo: "dist/index.js",
        mooc:"dist/index.js comp",
        mooa: "dist/index.js arch",
        moom: "dist/index.js menu"
    }
    ...
}

Why

Well... Not sure, but at first looked like a good idea.

Not sure too. I think this can be a little confusing.