stateful / runme

DevOps Workflows Built with Markdown
https://runme.dev
Apache License 2.0
901 stars 30 forks source link

Set default interpreter per Language #610

Open clayrosenthal opened 3 weeks ago

clayrosenthal commented 3 weeks ago

I would like to be able to set a default shebang/interpreter per language. I saw issue #355 mentions adding docs for adding new languages, but given it was still open I'm not sure how I could add an interpreter for a given language. In the meantime I think a quicker workaround would be the ability to set a default shebang for a given language so I can use an interpreter I've made for an unsupported language.

sourishkrout commented 2 weeks ago

Hi @clayrosenthal, thanks for getting in touch!

Have you tried the interpreter annotation either using the Configure foldout (screenshot below) or specifying it directly inside the fenced code block's attributes (both having the same effect)? Docs available here: https://docs.runme.dev/configuration/shebang#configuring-shebang-custom-interpreter-in-vs-code

Will that solve for your use case?

image

The https://github.com/stateful/runme/issues/355 issue is for extending shebang auto-detection based on the languageId, as in markdown's triple backticks with e.g. sh or javascript)