   case xcodeFileTemplate = "/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Source"
 }
 
-
-//===============
-//MARK: - Execute
-//===============
+// ===============
+// MARK: - Execute
+// ===============
 setup()

    break
  }
  
  
  let filePath = directoryPath.appending("/\(templateName)")
  let _ = bash(command: "mkdir", arguments: ["-p", directoryPath])
  
  copyTemplate(from: templateName, to: filePath)
}


///
func copyTemplate(from: String, to: String) {
  do {
    printInConsole(".....")
    defer { print() }
    
    if !fileManager.fileExists(atPath: to){
      try fileManager.copyItem(atPath: from, toPath: to)
      
      printInConsole("Template installed succesfully.")
      
    }
    else{
      try _ = fileManager.removeItem(atPath: to)
      try fileManager.copyItem(atPath: from, toPath: to)
      
      printInConsole("Template has been replaced succesfully.")
    }
  }
  catch let error as NSError {
    printInConsole("Ooops! Something went wrong: \(error.localizedFailureReason!)")
  }
}


/// Bash Shell Command
func bash(command: String, arguments: [String]) -> String {

      continue
    }
    
    templateName = templates[num - 1]
    printInConsole("\(templateName) is selected")
    print()
    break
