Function: majutsu--shell-command

majutsu--shell-command is a natively compiled function defined in majutsu-command.el.

Signature

(majutsu--shell-command COMMAND &optional DIRECTORY)

Documentation

Execute COMMAND asynchronously in DIRECTORY and display output.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-command.el
(defun majutsu--shell-command (command &optional directory)
  "Execute COMMAND asynchronously in DIRECTORY and display output."
  (setq command (string-trim (or command "")))
  (when (string-empty-p command)
    (user-error "Need non-empty input"))
  (let ((default-directory (or directory default-directory))
        process)
    (with-connection-local-variables
      (majutsu-with-editor
        (setq process (majutsu--start-shell-command command))))
    (majutsu-process-buffer)
    process))