   )
 
 
-# Create Command
-prog.command('create <projectName>')
-  .description('Create a basic running app with a router.')
-
-  .action((projectName, options) ->
-    puts('\nCreating basic app structure')
-    require('./init').init(projectName, options)
-  )
-
-  .on('--help', ->
-    puts('Scaffold out common files like .jshintrc, smart.json, and a makefile')
-    puts('Run the `mrt` command to install Iron Router if this is the first time.')
-    puts()
-    puts('  Example:')
-    puts('  $ mgen create mybook')
-    puts('  $ cd mybook')
-    puts('  $ mrt  #install iron router')
-    puts()
-  )
- 
-
 # Package Command
 prog.command('package <packageName>')
   .description('Create a basic Meteor/Atmosphere package')

# Copyright(c) 2014 Adam Brodzinski <adambrodzinski@gmail.com>
# MIT Licensed

prog = require 'commander'
path = require 'path'
global.templatePath = path.resolve("#{__dirname}/../templates/default/") + "/"


# save spacec & make printing look a bit nicer
global.puts = (msg, param1) ->
  unless param1
    console.log(msg || '')

    console.log(msg, param1)


# require mgen modules
Package = require './package'
Namespace = require './namespace'
Component = require './component'

                       

# -------------------  CLI Commands  -------------------



# Create Command
prog.command('create <projectName>')
  .description('Create a basic running app with a router.')

  .action((projectName, options) ->
    puts('\nCreating basic app structure')
    require('./init').init(projectName, options)
  )

  .on('--help', ->
    puts 'Scaffold out common files like .jshintrc, smart.json, and a makefile'
    puts 'Run the `mrt` command to install Iron Router if this is the first time.'
    puts ''
    puts '  Example:'
    puts '  $ mgen create mybook'
    puts '  $ cd mybook'
    puts '  $ mrt  #install iron router'
    puts ''
  )


# Components Command
# copies a Meteor component boilerplate folder and moves it into component directory.
#
prog.command('component <component_name>')
  .description('Create a component template, JS, and Sass files')

