Function: majutsu-read-shell-command

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

Signature

(majutsu-read-shell-command &optional TOPDIR INITIAL-INPUT)

Documentation

Read a shell command for Majutsu runners.

When TOPDIR or current-prefix-arg is non-nil, prompt relative to the workspace root. INITIAL-INPUT is inserted into the minibuffer.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-command.el
(defun majutsu-read-shell-command (&optional topdir initial-input)
  "Read a shell command for Majutsu runners.
When TOPDIR or `current-prefix-arg' is non-nil, prompt relative to the
workspace root.  INITIAL-INPUT is inserted into the minibuffer."
  (let ((default-directory (majutsu--shell-command-directory topdir)))
    (read-shell-command (if majutsu-shell-command-verbose-prompt
                            (format "Async shell command in %s: "
                                    (abbreviate-file-name default-directory))
                          "Async shell command: ")
                        initial-input
                        'majutsu-shell-command-history)))