Closed ItsHoff closed 6 months ago
Presumably this would be an issue for every other shell script shipped with Apheleia, not just that one. I would personally argue that a utility function should be created that executes an arbitrary command. If the operating system is Windows, then it would check the first line of the file to see if a shebang is used, and if so, prepend that to the command line.
Yeah, this should affect all the scripts.
I like that solution. I'll see if I can implement that once I get the time.
Emacs on Windows does not recognize
apheleia-npx
as an executable which causes the formatting to fail silently. A potential solution would be to add a Windows wrapperapheleia-npx.bat
along the lines ofThis still requires
sh
to be installed, but personally I find that to be a reasonable requirement.