       pubkey = fs.readFileSync("#{publickey}", 'utf-8').toString()
       msg.send {room: msg.message.user.name}, "Add this to your github repo as a deploy key, to give hubot read-only access.\n```\n#{pubkey}\n```"
 
+
   robot.respond /tf display key$/i, (msg) ->
     return unless isAuthorized robot, msg
     return if fileMissingSendAndReturnTrue msg, publickey, "No key on file!  Create one first."
 
     pubkey = fs.readFileSync("#{publickey}", 'utf-8').toString()
     return msg.send {room: msg.message.user.name}, "Add this to your github repo as a deploy key, to give hubot read-only access.\n```\n#{pubkey}\n```"
+
 
   robot.respond /tf erase key$/i, (msg) ->
     return unless isAuthorized robot, msg

    if stdout
      msg.send {room: msg.message.user.name}, "```\n#{stdout}\n```"

module.exports = (robot) ->

  robot.respond /tf help$/, (msg) ->
    cmds = []
    arr = [
      "#{tfName} (create|display|erase) key - rsa key operations, for git"
      "#{tfName} clone <repourl> <projectname> - clone git repo into projectname directory"
      "#{tfName} list projects - enumerate projects"
      "#{tfName} remote <projectname> - git remote info"
      "#{tfName} delete <projectname> - erase <projectname> files"
      "#{tfName} (plan|refresh|apply|get|destroy) <projectname> - tf operations"
      "#{tfName} env <projectname> set <key>=<value> - set env var"
      "#{tfName} env <projectname> unset <key> - unset environmental variable"
      "#{tfName} env <projectname> list - show env for project"
    ]

    for str in arr

      else if error
        msg.send {room: msg.message.user.name}, "error:\n```\n#{error}\n```"


  robot.respond /tf env ([^\s]+) (.+)$/i, (msg) ->
    console.log "tf env-set"
    proj = msg.match[1].replace /\//, "_"
    ekvpairs = msg.match[2].split " "

    return unless isAuthorized robot, msg
    if proj not in ['me','all']
      return if fileMissingSendAndReturnTrue msg, proj, "Env-set: invalid project name: `#{proj}`"

    proj = msg.message.user.name if proj is 'me'

    outs = []
    for ekv in ekvpairs
      ekva = ekv.split "="
      out = updateProjEnv robot, proj, ekva[0], ekva[1]
      outs.push out

    return msg.send {room: msg.message.user.name}, outs.join "\n"


  robot.respond /tf env(?: ([^\s]+))?$/i, (msg) ->
    console.log "tf env-show"
    proj = if msg.match[1] then msg.match[1].replace /\//, "_" else false

    return unless isAuthorized robot, msg
    if proj and proj not in ['me','all']
      return if fileMissingSendAndReturnTrue msg, proj, "Env-show: invalid project name: `#{proj}`"

    domains = if proj then [proj] else ['all','me']

    out = []
    for proj in domains
      proj = msg.message.user.name if proj is 'me'
      out.push formatProjEnv robot, proj

    return msg.send {room: msg.message.user.name}, out.join "\n"
