Log taskwarrior shell commands to messages buffer

This commit is contained in:
Patrick Winter 2019-01-14 11:01:11 +01:00
parent 2351ed042d
commit 02d96875ab

View file

@ -87,13 +87,14 @@
(taskwarrior-update-buffer new-filter))))
(defun taskwarrior--shell-command (command &optional filter modifications miscellaneous)
;; Taskwarrior
(shell-command-to-string
(format "task %s %s %s %s"
(or filter "")
command
(or modifications "")
(or miscellaneous ""))))
(let ((cmd (format "task %s %s %s %s"
(or filter "")
command
(or modifications "")
(or miscellaneous ""))))
(progn
(message cmd)
(shell-command-to-string cmd))))
(defun taskwarrior-export (filter)
"Export taskwarrior entries as JSON"