 
 
 cmdPut = (options) ->
-  logger.debug options
   wf = wfall.create
     stream: fs.createReadStream options.localpath
   wf.push (hooks, callback) ->


cmdAuth = (options) ->
  wf = wfall.create
    open: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=#{client_id}&scope=#{encodeURIComponent scope}&response_type=code&redirect_uri=#{encodeURIComponent redirect_uri}"
  wf.push (hooks, callback) ->
    console.log "OPEN", hooks.open
    getInput (err, code) ->
      hooks.code = code
      callback()
  wf.push (hooks, callback) ->
    getToken hooks.code, (err, auth) ->
      hooks.auth = auth
      callback()
  wf.push (hooks, callback) ->
    console.log hooks.auth

request = require 'request'
async   = require 'async'
_       = require 'lodash'
program = require 'commander'
fs      = require 'fs'
