Skip to content
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

Task runner functionality #510

Open
dbohdan opened this issue Nov 28, 2024 · 0 comments
Open

Task runner functionality #510

dbohdan opened this issue Nov 28, 2024 · 0 comments

Comments

@dbohdan
Copy link
Contributor

dbohdan commented Nov 28, 2024

My (trivial) use of a task runner in the guestbook project has made me realize Joker could be its own task runner. It is a problem for task runners to have a cross-platform, expressive scripting language. For this reason, Task includes a pure-Go Unix shell; just is considering embedding RustPython. Joker would get a head start.

Joker could implement a task runner in a way similar to its linter and formatter. For example, the command line arguments joker --task foo bar 2 baz could run (tasks/foo "bar" "2" "baz") or (tasks/foo "bar" 2 "baz") after loading a file like tasks.joke. Another option like joke --list-tasks could list the functions in the namespace tasks in tasks.joke. One could come up with something for a default task (like make or just without arguments).

To be clear, this is not an "I need this" or "I think others need this" feature request. It is something I thought might be cool to have.

Prior art in Clojure: Babashka includes a task runner. I think it would be best for Joker to use a simple source file for tasks instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant