-
Notifications
You must be signed in to change notification settings - Fork 121
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Replace script_runner
with explicitly required shebang lines?
#130
Comments
not sure about that as its pretty much the same thing but less structured.
[tasks.python]
script_runner = "python"
script_extension = "py"
script = [
'''
print("Hello, World!")
'''
] for windows you might want to replace it to pythonw [tasks.python]
script_runner = "pythonw" if it was embedded in the script, you would have to copy the entire script again which would mean duplicate the code there and would be harder to maintain. |
On the Windows point, you are correct, with Windows Batch files. Usually, you'd do a two-step magic number check:
On the package management side, I'm imaging a new URI command to choose central repostiory, and one that will fetch to/from global鈥攐r local?鈥攃ache. So now you need this sort of syntax, because you can then have a: [tasks.clean]
script = "pkg://default_cleaner" |
ok I understand what's the end goal here. I wonder if the load scripts feature would basically resolve that by having those scripts in a common makefile that you can than use to call the defined tasks there. |
@SamuelMarks this is now implemented. |
@SamuelMarks published in 0.16.7 |
Problem Description
With the exception of
@shell
, why not just use the shebang line?Yes, Rust can be covered also, see this stackoverflow question.
Seems like a much more general solution than your current one.
What do you think 馃槃 ?
The text was updated successfully, but these errors were encountered: