Skip to content

Commit 0cbdbf0

Browse files
committed
emacs: Add datastore.ls '-a' flag when prefix arg is given
Signed-off-by: Doug MacEachern <[email protected]>
1 parent 0ba6547 commit 0cbdbf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

govc/emacs/govc.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ Optionally filter by FILTER and inherit SESSION."
11371137

11381138
(defun govc-datastore-ls-entries ()
11391139
"Wrapper for govc datastore.ls."
1140-
(let* ((data (govc-json "datastore.ls" "-l" "-p" govc-filter))
1140+
(let* ((data (govc-json "datastore.ls" (if current-prefix-arg "-a") "-l" "-p" govc-filter))
11411141
(file (plist-get (elt data 0) :file)))
11421142
(-map (lambda (ent)
11431143
(let ((name (plist-get ent :path))
@@ -1164,7 +1164,7 @@ Optionally filter by FILTER and inherit SESSION."
11641164
(interactive)
11651165
(let ((id (tabulated-list-get-id)))
11661166
(if current-prefix-arg
1167-
(govc-shell-command (list "datastore.ls" "-l" "-p" "-R" id))
1167+
(govc-shell-command (list "datastore.ls" (if current-prefix-arg "-a") "-l" "-p" "-R" id))
11681168
(if (s-ends-with? "/" id)
11691169
(progn (setq govc-filter id)
11701170
(tabulated-list-revert))

0 commit comments

Comments
 (0)