   .option("-d, --directory <path>", "Change the default component directory 'client/components'", "client/components/")
 
   .action((compName, options) ->
-    require('./component').run(compName, options)
+    component = new Component(compName, options)
   )
 
   .on('--help', ->

  else
    console.log(msg, param1)

# global template path

# Main mgen command options
prog.version('0.0.7')

Package = require './package'
Namespace = require './namespace'


# Components Command

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


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