 os   = require 'os'
 
 class Transformer
-  needSave:  true
-  command:   null
-  args:      null
-  options:   null
-  tempFile:  null
+  needSave: true
+  command: null
+  args: null
+  options: null
+  tempFile: null
   extension: null
-  outFile:   path.join os.tmpdir(), 'transformer'
+  outFile: path.join os.tmpdir(), 'transformer'
 
   constructor: (@editor) ->
     selection = @editor.getLastSelection()


class JavaScript extends Transformer
  command: 'node'

class Go extends Transformer
  initialize: -> @args = ['run', @URI]

    stdout  = (output) -> onData output
    stderr  = (output) -> onData output
    exit    = (code)   -> onFinish code
    # console.log [command, args]
    process = new BufferedProcess {command, args, options, stdout, stderr, exit}

  writeTempfile: (text) ->
