Function: zig-ts--run-cmd

zig-ts--run-cmd is a natively compiled function defined in zig-ts-mode.el.

Signature

(zig-ts--run-cmd CMD &optional SOURCE &rest ARGS)

Documentation

Use compile command to execute a zig CMD with ARGS if given.

If given a SOURCE, execute the CMD on it.

Source Code

;; Defined in /nix/store/jxyx97fhclw4jb395hn97pz60n2rh0hs-emacs-packages-deps/share/emacs/site-lisp/elpa/zig-ts-mode-20260921.1554/zig-ts-mode.el
(defun zig-ts--run-cmd (cmd &optional source &rest args)
  "Use compile command to execute a zig CMD with ARGS if given.
If given a SOURCE, execute the CMD on it."
  (let ((cmd-args (if source (cons source args) args)))
    (save-some-buffers)
    (compilation-start (mapconcat 'shell-quote-argument
                                  `(,zig-ts-zig-bin ,cmd ,@cmd-args)
                                  " "))))