'use strict'

exports.generateAuth = function (options) {
  return options.user && options.pwd ? `-u ${options.user} -p ${options.pwd} --authenticationDatabase ${options.db}` : ''
}

exports.generateHeaderline = function (options) {
  return options.fileTye !== 'json' ? '--headerline' : (options.jsonArray ? '--jsonArray' : '')
}

exports.generateType = function (options) {

}

'use strict'

exports.generateAuth = function (options) {
  return options.user && options.pwd ? `-u ${options.user} -p ${options.pwd} --authenticationDatabase ${options.db}` : ''
}

exports.generateHeaderline = function (options) {
  return options.fileTye !== 'json' ? '--headerline' : (options.jsonArray ? '--jsonArray' : '')
}

exports.generateType = function (file) {
  return `--type ${file.substring(file.lastIndexOf('.') + 1).toLowerCase()}`
}

exports.generateUpsertFields = function (val) {
  val ? `--upsertFields ${val.join(',')}` : ''
}


Add logic for generateType() and generateUpsertFields() functions
Add logic for generateType() and generateUpsertFields() functions
