Function: cider--powershell-encode-command
cider--powershell-encode-command is a byte-compiled function defined
in cider-jack-in.el.
Signature
(cider--powershell-encode-command CMD-PARAMS)
Documentation
Base64 encode the powershell command and jack-in CMD-PARAMS for clojure-cli.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-jack-in.el
(defun cider--powershell-encode-command (cmd-params)
"Base64 encode the powershell command and jack-in CMD-PARAMS for clojure-cli."
(let* ((quoted-params cmd-params)
;; Also ensure compatibility with pwsh 7.3 quoting rules
;;
;; https://stackoverflow.com/a/59036879
(command (format "$PSNativeCommandArgumentPassing = 'Legacy'; clojure %s" quoted-params))
(utf-16le-command (encode-coding-string command 'utf-16le))
(options (if (or (null cider-clojure-cli-powershell-options)
(string-empty-p cider-clojure-cli-powershell-options))
""
(concat cider-clojure-cli-powershell-options " "))))
(format "%s-encodedCommand %s" options (base64-encode-string utf-16le-command t))))