   "JSON via govc datastore.ls -json on current selection."
   (interactive)
   (let ((govc-args '("-l" "-p")))
-    (govc-json-info "datastore.ls" (govc-selection))))
+    (govc-json-info-selection "datastore.ls")))
 
 (defun govc-datastore-mkdir (name)
   "Mkdir via govc datastore.mkdir with given NAME."

(defun govc-host-json-info ()
  "JSON via govc host.info -json on current selection."
  (interactive)
  (govc-json-info "host.info" (govc-selection)))

(defvar govc-host-mode-map
  (let ((map (make-sparse-keymap)))

(eval-when-compile
  (require 'cl))
(require 'dash)
(require 'diff)
(require 'dired)
(require 'json-mode)
(require 'magit-popup)
