anchor.diff:          Atom.addCommand("atom-workspace", "Paket: Add NuGet Package", PaketService.Add { Versioned =  false; AddToCurrentProject = false })
           Atom.addCommand("atom-workspace", "Paket: Add NuGet Package (to current project)", PaketService.Add { Versioned =  false; AddToCurrentProject = true })
           Atom.addCommand("atom-workspace", "Paket: Add NuGet Package Version", PaketService.Add { Versioned =  true; AddToCurrentProject = false })
  +        Atom.addCommand("atom-workspace", "Paket: Remove NuGet Package", PaketService.Remove false)
  +        Atom.addCommand("atom-workspace", "Paket: Remove NuGet Package (from current project)", PaketService.Remove true )
  +        
           ()
   
       member x.deactivate() =
  
positive.code: 
      let execPaket cmd handler = exec location cmd handler
      let spawnPaket cmd = spawn location cmd
  
  
  
  
      
      type PackageAddSettings = {
          Versioned : bool
  
negative.code:                 )
              regiterListView stopChangingCallback cancelledCallback confirmedCallback false
  
          let registerRemoveListView () = 
              let stopChangingCallback (ev : IEditor) (lv : atom.SelectListView) = fun () -> ()
  
              let cancelledCallback = Func<_>(fun _ -> removeListView |> Option.iter(fun (model, view) ->  view.hide()) :> obj)
  
              let confirmedCallback = unbox<Func<_, _>> (fun (packageDescription : ItemDescription) -> 
                                          name <- packageDescription.data.Split(' ').[0].Trim()
                                          removeListView |> Option.iter (fun (model, view) -> view.hide())
                                          if removeProject |> not then
                                              "remove nuget " + name |> spawnPaket :> obj
                                          else
                                              let projectStr =  
                                                  if not settings.AddToCurrentProject then "" else
                                                  let path = Globals.atom.workspace.getActiveTextEditor().buffer.file.path
                                                  " project \"" + path + "\""
                                                  
                                              "remove nuget " + name + projectStr |> spawnPaket :> obj)
  
              regiterListView stopChangingCallback cancelledCallback confirmedCallback false
              
  
  
      let UpdatePaket () = spawn bootstrapperLocation ""
  