Function: majutsu-start-jj

majutsu-start-jj is a natively compiled function defined in majutsu-process.el.

Signature

(majutsu-start-jj ARGS &optional SUCCESS-MSG FINISH-CALLBACK)

Documentation

Run jj ARGS asynchronously for side-effects and log output.

Return the process object.

SUCCESS-MSG is displayed on exit code 0. When FINISH-CALLBACK is non-nil, call it as (FINISH-CALLBACK PROCESS EXIT-CODE) after the process terminates.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-process.el
(defun majutsu-start-jj (args &optional success-msg finish-callback)
  "Run jj ARGS asynchronously for side-effects and log output.

Return the process object.

SUCCESS-MSG is displayed on exit code 0.  When FINISH-CALLBACK is
non-nil, call it as (FINISH-CALLBACK PROCESS EXIT-CODE) after the
process terminates."
  (let* ((default-directory (majutsu--toplevel-safe default-directory))
         (jj (majutsu-jj--executable))
         (args (majutsu-process-jj-arguments args))
         (process (apply #'majutsu-start-process jj nil args)))
    (when success-msg
      (process-put process 'success-msg success-msg))
    (when finish-callback
      (process-put process 'finish-callback finish-callback))
    process))