cnpryer / huak

My experimental Python package manager.
https://cnpryer.github.io/huak/
MIT License
616 stars 34 forks source link

Implement Huak's Task Table #860

Closed cnpryer closed 11 months ago

cnpryer commented 11 months ago

Closes #815

[tool.huak.task]
hello-world = "python -c 'print(\"hello, world.\")'"
image

Tested with

[tool.huak.task]
string = "python -c 'print(\"string\")'"
array = ["python", "-c", "print('array')"]
inline-cmd = { cmd = "python -c 'print(\"cmd\")'" }
inline-args = { args = ["python", "-c", "print('args')"] }
inline-program = { program = "python", args = ["-c", "print('program')"] }

TODO(future):

cnpryer commented 11 months ago

Might reconsider name of table to avoid confusion with https://peps.python.org/pep-0723/