                                   (dwim-shell-command--command-reporter exec)
                                   (dwim-shell-command--command-on-completion exec))))
 
-(defun dwim-shell-command--filter (process string)
+(defun dwim-shell-command--filter (process output)
+  "Handles PROCESS filtering and STATE and OUTPUT."
   (when-let* ((exec (map-elt dwim-shell-command--commands (process-name process)))
               (reporter (dwim-shell-command--command-reporter exec)))
     (progress-reporter-update reporter))
-  (comint-output-filter process string))
+  (comint-output-filter process output))
 
 (cl-defun dwim-shell-command-on-marked-files (buffer-name script &key utils extensions shell-util shell-args shell-pipe post-process-template on-completion)
-  "Execute SCRIPT, using buffer NAME, FILES, and bin UTILS."
+  "Execute SCRIPT, using BUFFER-NAME.
+See `dwim-shell-command-execute-script' for all other params."
   (dwim-shell-command-execute-script buffer-name script
                                      :files (dwim-shell-command--marked-files)
                                      :utils utils

          (map-delete dwim-shell-command--commands (process-name process)))))

(defun dwim-shell-command--sentinel (process state)
  (let ((exec (map-elt dwim-shell-command--commands (process-name process))))
    (dwim-shell-command--finalize (dwim-shell-command--command-calling-buffer exec)
                                  (dwim-shell-command--command-files-before exec)

    (dired-get-marked-files)))

(provide 'dwim-shell-command)

(provide 'dwim-shell-command)

;;; dwim-shell-command.el ends here
