-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for other task languages #42
Comments
I think this is an interesting idea, and intuitive. The only concern I have is whether this is something that makes sense in xc, being a task runner equivelant to Make or For example currently my main use for xc is the document things such as how to deploy a project, or how to build it. |
A bit off topic, but I have to say that this description is IMO much clearer than the current one in the README:
Would a PR changing the latter to (some variant of) the former be considered? |
@waldyrious I'm open to contributions, if you open a PR we can spitball some alternatives. It's hard to explain exactly what something does in such few words, but it's valuable once you get it right! |
I've all too often had a task runner ( For example... does this repo implement |
@dschep I'm thinking on this, and I'm in two minds about it. The purpose of xc is so that your "useful commands runner" and the documentation for them are stored in the same place. It also means that even if xc is not installed someone could find use in the Would defining a whole python script in a task, be too verbose? Just jotting down my thoughts. I'll keep this issue open, for commenting. |
Just a small note from someone casually following the discussion: since the rendered markdown only uses the language specification for syntax highlighting, would it make sense to require shebangs (or for tasks defined in languages other than bash, just to make things explicit in case #!/usr/bin/env python
print("foo") Note that this would enable straight copy-paste into a terminal if the /usr/bin/env python
print("foo") (But it does feel pretty hacky/brittle...) |
@waldyrious It seems a better approach to drive which interpreter is used from the shebang line, more discoverable, but like you say I still think that it detriments the experience of someone coming to the README without a knowledge of xc, apposed to if it was a smaller task that calls a python script directly. |
I like that idea too @waldyrious ! |
Just uses that method: https://just.systems/man/en/chapter_40.html |
Started tinkering on this at https://github.com/joerdav/xc/tree/other-languages |
Many markdown renderers, including Github&Gitlab Flavored markdown support specifying a language for syntax highlighting.
It'd be awesome to use this to specify a different shell/interpreter for tasks
eg,
will explicitly run bash
and
would invoke
python
insteadThe text was updated successfully, but these errors were encountered: