Jump To …

generator.coffee

src/tools/

generator.coffee batman.js

Created by Nick Small Copyright 2011, Shopify

fs = require 'fs'
path = require 'path'
util = require 'util'
cli  = require './cli'
utils = require './utils'
{spawn, exec} = require 'child_process'
Batman = require '../lib/batman.js'

cli.setUsage('batman [OPTIONS] generate app|model|controller|view <name>\n  batman [OPTIONS] new <app_name>')
cli.parse
  app: ['-n', "The name of your Batman application (if generating an application component). This can also be stored in a .batman file in the project root.", "string"]


cli.main (args, options) ->

Argument Fandangling

generate can get called in a few different ways: - batman gen