var clone = require('git-clone')
var colors = require('colors')

module.exports = function() {
  clone('https://github.com/dnxbf321/npx-template.git', process.cwd(), function() {
    console.log(colors.bgGreen('[task init]'), 'done')
  })
}

@@ -56,16 +56,43 @@
 colors')
+%0Avar glob = require('glob')
 %0A%0Amodule
@@ -115,16 +115,248 @@
 ion() %7B%0A
+  var found = glob.sync('@(*%7C.*)')%0A%0A  if (found.length) %7B%0A    console.log(colors.bgRed('%5Btask init%5D'), 'this folder is not empty')%0A  %7D else %7B%0A    console.log(colors.bgGreen('%5Btask init%5D'), 'wait seconds to download the template')%0A  
   clone(
@@ -427,20 +427,113 @@
 unction(
+err
 ) %7B%0A
+      if (err) %7B%0A        console.log(colors.bgRed('%5Btask init%5D'), err)%0A      %7D else %7B%0A    
     cons
@@ -585,9 +585,23 @@
 )%0A  
+    %7D%0A    %7D)%0A  
 %7D
-)
 %0A%7D%0A

improve init